Skip to content

Commit

Permalink
fix: make replication roles unique (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Mar 4, 2023
1 parent f08b2fd commit 86a523c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/multy-s3-bucket/0.1.0/s3-replication.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_iam_role" "replication" {
provider = aws.primaryregion
name = "tf-iam-role-s3-replication"
name = "tf-iam-role-s3-replication-${var.bucket_name}"

assume_role_policy = <<POLICY
{
Expand All @@ -21,7 +21,7 @@ POLICY

resource "aws_iam_policy" "replication" {
provider = aws.primaryregion
name = "tf-iam-role-policy-s3-replication"
name = "tf-iam-role-policy-s3-replication-${var.bucket_name}"

policy = <<POLICY
{
Expand Down

0 comments on commit 86a523c

Please sign in to comment.