Skip to content

Commit

Permalink
Release: 1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Apr 26, 2023
1 parent daaad8e commit 63f0c3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.1
1.10.2
17 changes: 8 additions & 9 deletions modules/aft-backend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,23 +270,22 @@ resource "aws_dynamodb_table" "lock-table" {
name = "LockID"
type = "S"
}
lifecycle { ignore_changes = [replica] }

tags = {
"Name" = "aft-backend-${data.aws_caller_identity.current.account_id}"
# If secondary_region is provided, there will be 1 iteration of the dynamic replica block
# If secondary region is omitted, there will be 0 iteration of the dynamic replica block
dynamic "replica" {
for_each = var.secondary_region == "" ? [] : [1]
content {
region_name = var.secondary_region
}
}
}

resource "aws_dynamodb_table_replica" "lock-table-replica" {
count = var.secondary_region == "" ? 0 : 1
provider = aws.secondary_region
global_table_arn = aws_dynamodb_table.lock-table.arn

tags = {
"Name" = "aft-backend-${data.aws_caller_identity.current.account_id}"
}
}


# KMS Resources

resource "aws_kms_key" "encrypt-primary-region" {
Expand Down

0 comments on commit 63f0c3f

Please sign in to comment.