Skip to content

Commit

Permalink
fix(replication): missing quote, created local
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored Nov 13, 2024
1 parent 3349b03 commit 34f9279
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions replication.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
locals {
replication_role = format("%s-replication", local.bucket_name)
}

resource "aws_iam_role" "replication" {
count = local.replication_enabled ? 1 : 0

name = format("%s-replication, local.bucket_name)
name = local.replication_role
assume_role_policy = data.aws_iam_policy_document.replication_sts[0].json
permissions_boundary = var.s3_replication_permissions_boundary_arn

Expand All @@ -28,7 +32,7 @@ data "aws_iam_policy_document" "replication_sts" {
resource "aws_iam_policy" "replication" {
count = local.replication_enabled ? 1 : 0

name = format("%s-replication, local.bucket_name)
name = local.replication_role
policy = data.aws_iam_policy_document.replication[0].json

tags = module.this.tags
Expand Down

0 comments on commit 34f9279

Please sign in to comment.