Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate worker IAM role is being created #3

Closed
apaterson-ecs opened this issue Nov 16, 2020 · 0 comments
Closed

Duplicate worker IAM role is being created #3

apaterson-ecs opened this issue Nov 16, 2020 · 0 comments

Comments

@apaterson-ecs
Copy link
Contributor

When we stand up our EKS cluster using this module i have been noticing two worker IAM roles being created. I believe this to be a duplicate and not necessary as the EKS module creates the worker IAM role and attaches the policies.

This is causing a bit of confusion when we re-run our Terraform plan as it wants to remove one of the worker IAM roles from the aws_iam_policy_attachment resources. We don't want to see this in our Terraform plan every time we run it.

File references as follows:
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/workers.tf#L402
https://github.com/spotinst/terraform-spotinst-ocean-eks/blob/master/eks.tf#L22

Is there a particular reason as to why you included the aws_iam resources in your module even though it is in the Terraform EKS module?

@liranp liranp closed this as completed in 29dfaf1 Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant