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

Metadata options don't seem to work #1300

Closed
kamialie opened this issue Apr 14, 2021 · 1 comment · Fixed by #1301
Closed

Metadata options don't seem to work #1300

kamialie opened this issue Apr 14, 2021 · 1 comment · Fixed by #1301

Comments

@kamialie
Copy link
Contributor

Description

Trying to set metadata to v2 using the following options from local.tf:

  • metadata_http_endpoint = "enabled"
  • metadata_http_tokens = "required"
  • metadata_http_put_response_hop_limit = 1

Tried to set those both in worker_groups and workers_group_defaults blocks. Actually, even setting completely unacceptable value, like list, has no effect (no error issued), so my suspicion is those are ignored completely.

Versions

  • Terraform: v0.14.10
  • Provider(s):
    • provider registry.terraform.io/gavinbunney/kubectl v1.10.0
    • provider registry.terraform.io/hashicorp/aws v3.31.0
    • provider registry.terraform.io/hashicorp/helm v2.0.2
    • provider registry.terraform.io/hashicorp/kubernetes v1.13.3
    • provider registry.terraform.io/hashicorp/local v2.1.0
    • provider registry.terraform.io/hashicorp/null v3.1.0
    • provider registry.terraform.io/hashicorp/random v3.1.0
    • provider registry.terraform.io/hashicorp/template v2.2.0
    • provider registry.terraform.io/hashicorp/tls v3.1.0

Reproduction

Steps to reproduce the behavior: basically try to set those 3 options and see if you see any changes proposed and being applied successfully. I'm not using workspaces and tried the suggestion above, which is clearing local cache.

Code Snippet to Reproduce

module "eks" {
  source           = "terraform-aws-modules/eks/aws"

  # other data...
  workers_group_defaults = {
    http_endpoint                           = "enabled"
    http_tokens                              = "required"
    http_put_response_hop_limit = 2
  }
}

Expected behavior

Set up metadata_options block in launch configuration.

Actual behavior

No effect.

Terminal Output Screenshot(s)

No changes to perform.

@github-actions
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 Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant