agent: |
VsDWYxmyGHUd3VSDmzysMinimum required IAM policy for the Amazon EKS cluster IAM role also requires: "ec2:DescribeAvailabilityZones"
Minimum required IAM policy for the Amazon EKS cluster IAM role also requires: "ec2:DescribeAvailabilityZones"
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
Edit aws_iam_policy_eks in eks/user.tf to include "ec2:DescribeAvailabilityZones" as well.
Basic requirement of policy was increased to include this policy.
inputs
outputs
resource "aws_iam_policy" "aws_iam_policy_eks" {
name = "eks-policy-${var.environment}-${data.terraform_remote_state.vpc.outputs.random_id}"
path = "/"
description = "eks-policy-${var.environment}-${data.terraform_remote_state.vpc.outputs.random_id}"
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = [
"eks:*",
"ec2:DescribeAvailabilityZones",
]
Effect = "Allow"
Resource = "*"
},
]
})
}
copied