mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-18 07:23:45 +01:00
feat: Add support for custom IAM role policy (#3087)
This commit is contained in:
@@ -265,6 +265,17 @@ module "eks" {
|
||||
AmazonEC2ContainerRegistryReadOnly = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
|
||||
additional = aws_iam_policy.node_additional.arn
|
||||
}
|
||||
iam_role_policy_statements = [
|
||||
{
|
||||
sid = "ECRPullThroughCache"
|
||||
effect = "Allow"
|
||||
actions = [
|
||||
"ecr:CreateRepository",
|
||||
"ecr:BatchImportUpstreamImage",
|
||||
]
|
||||
resources = ["*"]
|
||||
}
|
||||
]
|
||||
|
||||
launch_template_tags = {
|
||||
# enable discovery of autoscaling groups by cluster-autoscaler
|
||||
|
||||
Reference in New Issue
Block a user