-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
self-managed-node-group output "image_id" will only show the default ami, and not any var.ami_id provided #2235
Comments
correct - we only output the AMI ID that the module uses if one is not provided since it is not readily known to users. if you are passing in a custom AMI ID then that ID is readily known to you already |
@bryantbiggs it doesn't cost anything to return the correct value. Why not make them the same? |
…utput of the launch template
…utput of the launch template
@bryantbiggs can we re-open this; I have a PR for it in #2239 |
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. |
Description
When you create a self-managed-node-group and provide it a non-default ami_id, the instances will be launched correctly, but the
output
from the submodule will indicate that theimage_id
applied was the default eks ami_id derived from the data source.Source References:
If you provide a custom AMI ID, the output will show the incorrect data.
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: 18.29.0
Terraform version: 1.2.8
Reproduction Code [Required]
Steps to reproduce the behavior:
Provide self_managed_node_groups with a non-default
ami_id
Expected behavior
output of self_managed_node_groups should show instances have the provided
image_id
Actual behavior
output self_managed_node_groups instead shows instances have the default
image_id
The text was updated successfully, but these errors were encountered: