Skip to content

Commit 551c6d6

Browse files
author
Phileas Lebada
authored
fix: Discourage usage of iam_policy_attachment in example (#1529)
1 parent cb0e677 commit 551c6d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/bottlerocket/main.tf

+2-3
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ EOT
5757

5858
# SSM policy for bottlerocket control container access
5959
# https://github.com/bottlerocket-os/bottlerocket/blob/develop/QUICKSTART-EKS.md#enabling-ssm
60-
resource "aws_iam_policy_attachment" "ssm" {
61-
name = "ssm"
62-
roles = [module.eks.worker_iam_role_name]
60+
resource "aws_iam_role_policy_attachment" "ssm" {
61+
role = module.eks.worker_iam_role_name
6362
policy_arn = data.aws_iam_policy.ssm.arn
6463
}

0 commit comments

Comments
 (0)