-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_eks_node_group: add support for node_group_name prefixes #13938
resource/aws_eks_node_group: add support for node_group_name prefixes #13938
Conversation
not all node group properties can be updated via the API, making many changes require a replacement of the resource. To make this seamless with create_before_destroy, Terraform should allow for the name to be automatically computed.
7236354
to
4da5bf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEksNodeGroup_basic\|TestAccAWSEksNodeGroup_Name_Generated\|TestAccAWSEksNodeGroup_NamePrefix'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEksNodeGroup_basic\|TestAccAWSEksNodeGroup_Name_Generated\|TestAccAWSEksNodeGroup_NamePrefix -timeout 180m
=== RUN TestAccAWSEksNodeGroup_basic
=== PAUSE TestAccAWSEksNodeGroup_basic
=== RUN TestAccAWSEksNodeGroup_Name_Generated
=== PAUSE TestAccAWSEksNodeGroup_Name_Generated
=== RUN TestAccAWSEksNodeGroup_NamePrefix
=== PAUSE TestAccAWSEksNodeGroup_NamePrefix
=== CONT TestAccAWSEksNodeGroup_basic
=== CONT TestAccAWSEksNodeGroup_NamePrefix
=== CONT TestAccAWSEksNodeGroup_Name_Generated
--- PASS: TestAccAWSEksNodeGroup_basic (1047.30s)
--- PASS: TestAccAWSEksNodeGroup_NamePrefix (1133.09s)
--- PASS: TestAccAWSEksNodeGroup_Name_Generated (1245.67s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1248.609s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEksNodeGroup_basic\|TestAccAWSEksNodeGroup_Name_Generated\|TestAccAWSEksNodeGroup_NamePrefix'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEksNodeGroup_basic\|TestAccAWSEksNodeGroup_Name_Generated\|TestAccAWSEksNodeGroup_NamePrefix -timeout 180m
=== RUN TestAccAWSEksNodeGroup_basic
=== PAUSE TestAccAWSEksNodeGroup_basic
=== RUN TestAccAWSEksNodeGroup_Name_Generated
=== PAUSE TestAccAWSEksNodeGroup_Name_Generated
=== RUN TestAccAWSEksNodeGroup_NamePrefix
=== PAUSE TestAccAWSEksNodeGroup_NamePrefix
=== CONT TestAccAWSEksNodeGroup_basic
=== CONT TestAccAWSEksNodeGroup_NamePrefix
=== CONT TestAccAWSEksNodeGroup_Name_Generated
--- PASS: TestAccAWSEksNodeGroup_Name_Generated (969.59s)
--- PASS: TestAccAWSEksNodeGroup_basic (1030.53s)
--- PASS: TestAccAWSEksNodeGroup_NamePrefix (1085.43s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1088.459s
@dstevensson Thanks for the contribution 👏. |
This has been released in version 3.40.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Release note for CHANGELOG:
Output from acceptance testing:
This PR adds functionality to use prefixes for naming EKS node groups which allows you to use life cycle arguments such as create_before_destroy.
node_group_name
is moved to optional with with a random unique value if omitted.