mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-18 06:49:37 +02:00
fix: Discourage usage of iam_policy_attachment in example (#1529)
This commit is contained in:
@@ -57,8 +57,7 @@ EOT
|
|||||||
|
|
||||||
# SSM policy for bottlerocket control container access
|
# SSM policy for bottlerocket control container access
|
||||||
# https://github.com/bottlerocket-os/bottlerocket/blob/develop/QUICKSTART-EKS.md#enabling-ssm
|
# https://github.com/bottlerocket-os/bottlerocket/blob/develop/QUICKSTART-EKS.md#enabling-ssm
|
||||||
resource "aws_iam_policy_attachment" "ssm" {
|
resource "aws_iam_role_policy_attachment" "ssm" {
|
||||||
name = "ssm"
|
role = module.eks.worker_iam_role_name
|
||||||
roles = [module.eks.worker_iam_role_name]
|
|
||||||
policy_arn = data.aws_iam_policy.ssm.arn
|
policy_arn = data.aws_iam_policy.ssm.arn
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user