No option to defined the Managed Policy(e.g. CloudWatchAgentServerPolicy) to Worker Nodes IAM Role.
Right now, I can't find a way to define manage policies, to attach worker nodes role.
You can just attach a policy like this:
resource "aws_iam_policy_attachment" "my_policy" {
name = "eks_my_policy"
roles = [module.my_cluster.worker_iam_role_name]
policy_arn = aws_iam_policy.my_policy.arn
}
@max-rocket-internet Thank you very much for your quick help.
Most helpful comment
You can just attach a policy like this: