-
Notifications
You must be signed in to change notification settings - Fork 9.5k
feat: add validatefunc
to name+pfx for eks_node_group
#29975
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
feat: add validatefunc
to name+pfx for eks_node_group
#29975
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @DorukAkinci 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
validatefunc
to name+pfx for eks_node_group
I have also revised the documentation; consequently, the workflows now require reapproval. |
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 🚀.
% make testacc TESTARGS='-run=TestAccEKSNodeGroup_basic\|TestAccEKSNodeGroup_Name_generated\|TestAccEKSNodeGroup_namePrefix' PKG=eks ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/eks/... -v -count 1 -parallel 3 -run=TestAccEKSNodeGroup_basic\|TestAccEKSNodeGroup_Name_generated\|TestAccEKSNodeGroup_namePrefix -timeout 180m
=== RUN TestAccEKSNodeGroup_basic
=== PAUSE TestAccEKSNodeGroup_basic
=== RUN TestAccEKSNodeGroup_Name_generated
=== PAUSE TestAccEKSNodeGroup_Name_generated
=== RUN TestAccEKSNodeGroup_namePrefix
=== PAUSE TestAccEKSNodeGroup_namePrefix
=== CONT TestAccEKSNodeGroup_basic
=== CONT TestAccEKSNodeGroup_namePrefix
=== CONT TestAccEKSNodeGroup_Name_generated
--- PASS: TestAccEKSNodeGroup_namePrefix (1032.48s)
--- PASS: TestAccEKSNodeGroup_basic (1095.09s)
--- PASS: TestAccEKSNodeGroup_Name_generated (1189.06s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/eks 1199.923s
@DorukAkinci Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.64.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. Thank you! |
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. |
Description
This PR adds ValidateFuncs to
node_group_name
andnode_group_name_prefix
variables foreks_node_group
.Relations
Closes #29974
References
Official AWS Docs: The node group name can't be longer than 63 characters. It must start with letter or digit, but can also include hyphens and underscores for the remaining characters.
Output from Acceptance Testing
Before the Enhancement / Feature
The Terraform provider thinks it can actually create the new node group and waits your approval.
It fails with the client's runtime error.
After the Enhancement / Feature
The provider throws an error even before asking the user for approval. The initial validation also prevents any unexpected executions that happen in the
apply
state because once the AWS API endpoint throws an error, terraform breaks the apply command