-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Replace the use of
toset()
with static keys for node IAM role…
… policy attachment (#2962)
- Loading branch information
1 parent
bed26ac
commit 57f5130
Showing
6 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
} |