Difference between revisions of "Terraform resource: aws iam role policy attachment"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
+ role = (known after apply) | + role = (known after apply) | ||
} | } | ||
+ | |||
+ | |||
+ | resource "aws_iam_role_policy_attachment" "your_node_policy" { | ||
+ | role = aws_iam_role.your_node_role.name | ||
+ | policy_arn = "[[arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore]]" | ||
+ | } | ||
== Related == | == Related == |
Revision as of 16:29, 29 May 2023
Module:
# module.eks.aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy[0] will be created + resource "aws_iam_role_policy_attachment" "cluster_AmazonEKSClusterPolicy" { + id = (known after apply) + policy_arn = "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy" + role = (known after apply) }
resource "aws_iam_role_policy_attachment" "your_node_policy" { role = aws_iam_role.your_node_role.name policy_arn = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" }
Related
- Terraform resource:
aws_iam_role
- aws_eks_node_group
See also
Advertising: