Skip to content

Commit

Permalink
Terraform fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Diniz <[email protected]>
  • Loading branch information
arthurbdiniz committed Jul 8, 2021
1 parent ae9c90d commit 7be5b59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions obfuscation_scripts_bucket_replication.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resource "aws_s3_bucket" "source_snapshot_bucket" {
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0
provider = aws.staging

bucket = var.obfuscation_scripts_bucket_name
acl = "private"
bucket = var.obfuscation_scripts_bucket_name
acl = "private"

versioning {
enabled = true
Expand Down Expand Up @@ -35,7 +35,7 @@ resource "aws_s3_bucket" "source_snapshot_bucket" {
}

resource "aws_iam_role" "replication" {
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0

name = "${var.obfuscation_scripts_bucket_name}-iam-role-replication"

Expand All @@ -57,7 +57,7 @@ POLICY
}

resource "aws_iam_policy" "replication" {
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0

name = "${var.obfuscation_scripts_bucket_name}-iam-role-policy-replication"

Expand Down Expand Up @@ -102,7 +102,7 @@ POLICY
}

resource "aws_iam_role_policy_attachment" "replication" {
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0
count = (var.enabled && var.create_obfuscation_scripts_bucket && var.replicate_obfuscation_bucket) ? 1 : 0

role = aws_iam_role.replication[0].name
policy_arn = aws_iam_policy.replication[0].arn
Expand Down

0 comments on commit 7be5b59

Please sign in to comment.