Skip to content

Commit

Permalink
Fix IAM policyes for eb_app (#542)
Browse files Browse the repository at this point in the history
* add comma

* >= 1, not >1

* remove comma
  • Loading branch information
peterdudfield committed May 13, 2024
1 parent cfdf8a9 commit eb2ce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/services/eb_app/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ resource "aws_iam_instance_profile" "ec2" {
}

resource "aws_iam_role_policy_attachment" "attach-read-s3-nwp" {
count = length(var.s3_bucket) > 1 ? length(var.s3_bucket) : 0
count = length(var.s3_bucket) >= 1 ? length(var.s3_bucket) : 0
role = aws_iam_role.instance-role.name
policy_arn = var.s3_bucket[count.index].bucket_read_policy_arn
}

0 comments on commit eb2ce77

Please sign in to comment.