Skip to content

Commit

Permalink
fix: Discourage usage of iam_policy_attachment in example (#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phileas Lebada authored Aug 26, 2021
1 parent cb0e677 commit 551c6d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/bottlerocket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ EOT

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

0 comments on commit 551c6d6

Please sign in to comment.