mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-19 16:21:09 +01:00
feat: Replace the use of toset() with static keys for node IAM role policy attachment (#2962)
This commit is contained in:
20
modules/eks-managed-node-group/migrations.tf
Normal file
20
modules/eks-managed-node-group/migrations.tf
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
# Migrations: v20.7 -> v20.8
|
||||
################################################################################
|
||||
|
||||
# Node IAM role policy attachment
|
||||
# Commercial partition only - `moved` does now allow multiple moves to same target
|
||||
moved {
|
||||
from = aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"]
|
||||
to = aws_iam_role_policy_attachment.this["AmazonEKSWorkerNodePolicy"]
|
||||
}
|
||||
|
||||
moved {
|
||||
from = aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"]
|
||||
to = aws_iam_role_policy_attachment.this["AmazonEC2ContainerRegistryReadOnly"]
|
||||
}
|
||||
|
||||
moved {
|
||||
from = aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"]
|
||||
to = aws_iam_role_policy_attachment.this["AmazonEKS_CNI_Policy"]
|
||||
}
|
||||
Reference in New Issue
Block a user