when we create a plan we do it with a read-only role. we then apply plans with a role with admin permissions. however, when trying to create resources on our eks cluster we get an error which references the role that created the plan
Terraform Version, Provider Version and Kubernetes Version
Can you please share how you are configuring the provider?
By that I mean the provider "kubernetes" { ... } block and any KUBE_* environment variables being present in the execution environment.
hello,
when we create a plan we do it with a read-only role. we then apply plans with a role with admin permissions. however, when trying to create resources on our eks cluster we get an error which references the role that created the plan
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/tormodmacleod/999bfff342122873a49eb4389a709265
Panic Output
Steps to Reproduce
terraform plan -out /tmp/plan
terraform apply "/tmp/plan"
Expected Behavior
secret is created
Actual Behavior
Important Factoids
plan role has aws read-only privileges and AmazonEKSAdminViewPolicy
apply role has aws admin privileges and AmazonEKSClusterAdminPolicy
References
it's a gke issue but kind of similar
Community Note