$ terraform -v
Terraform v0.8.8
resource "aws_dynamodb_table" "FooBar" { name = "FooBar" read_capacity = 10 write_capacity = 10 hash_key = "foo-id" attribute { name = "foo-id" type = "S" } attribute { name = "bar-id" type = "N" } global_secondary_index { name = "bar-index" hash_key = "bar-id" read_capacity = 10 write_capacity = 10 projection_type = "ALL" } lifecycle { ignore_changes = ["read_capacity", "write_capacity"] } }References
We would like to ignore read/write capacity for the GSI as well, but this configuration only ignores the read/write capacity of the top-level table. We weren't able to find any usable workaround, since we can't interpolate variables in the lifecycle, and wildcards are not supported.
Technically we could hardcode the randomly generated number like ignore_changes = ["global_secondary_index.3291674533.read_capacity"]
, but that's obviously a terrible solution since it would change every time we make a change.
sd-charris, mcwqy9, alexwlchan, nirajkhar, playdoz and 5 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4