-
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
Adds validation to API Gateway Stage cache configuration #22861
Adds validation to API Gateway Stage cache configuration #22861
Conversation
Fails at plan step if cache_cluster_size is set but cache_cluster_enabled is false or unset. Previously this plan would continue to the apply step and fail after trying to deploy the stage with a cryptic error message.
For reference - here's the basic configuration I used to test that the error is raised locally:
Results:
|
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 @bpar476 👋
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 CONTRIBUTING 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! 😃
Closing this in favour of #23091 |
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. |
Fails at plan step if
cache_cluster_size
is set butcache_cluster_enabled
is false or unset. Previously this plan wouldcontinue to the apply step and fail after trying to deploy the stage
with a cryptic error message.
I just need a bit of help sorting out the acceptance test the -
ExpectError
isn't working. A different error from the terraform refresh is being propagated and caught by theExpectError
. I can see that the change is working and the error is occuring, I've also validated that the error occurs during a terraform plan by using the developer override on a simple terraform configuration. I'd also appreciate some guidance on the acceptance test coverage - specifically whether it's enough to cover only the update scenario or if there should be separate test cases for when this error occurs at creation and when it occurs at update.Community Note
Relates OR Closes #22841
Output from acceptance testing: