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

Auto Mode custom tags policy is attached to cluster role when Auto Mode disabled #3250

Closed
1 task done
kian opened this issue Dec 19, 2024 · 3 comments
Closed
1 task done

Comments

@kian
Copy link

kian commented Dec 19, 2024

Description

Auto Mode custom tags policy is attached to cluster role even when auto mode is disabled. I believe this is the result of #3242

The variable defaults to true which explains why these are created. Should there be an additional check for example that disables creation unless auto-mode itself is enabled?

https://github.com/terraform-aws-modules/terraform-aws-eks/pull/3242/files#diff-dc46acf24afd63ef8c556b77c126ccc6e578bc87e3aa09a931f33d9bf2532fbbR567

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: 20.31.4
  • Terraform version: 1.9.8
  • Provider version(s): 5.81.0

Expected behavior

auto-mode custom tags are ignored when auto-mode is disabled

Actual behavior

custom IAM policy/attachment with enable_auto_mode_custom_tags permissions is created

@kian
Copy link
Author

kian commented Dec 20, 2024

Closing this because I think it's expected; auto-mode is default for the module and it's up to users to disable the variable if not using auto mode.

@kian kian closed this as completed Dec 20, 2024
@Pionerd
Copy link

Pionerd commented Dec 24, 2024

Respectfully disagree with this outcome. Currently the local auto_mode_enabled (basically leveraging the content of var.cluster_compute_config) is used in several places for auto mode config.

Since that variable is empty by default, I don't really consider auto mode the default for this module.
I don't see why disabling these tags should the be done separately.

It looks pretty ugly in our current config where setting enable_auto_mode_custom_tags = false is the only specific mention of (a disabled) auto mode.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants