-
Notifications
You must be signed in to change notification settings - Fork 9.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
Allow empty string as valid setting for launch_type in CloudWatchEventTarget #19555
Conversation
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 @ianneub 👋
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! 😃
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.
Hi @ianneub, this is off to a great start! Just small comments to address.
Also, do you mind adding in a new acceptance test to validate creation with an empty string as well as updating from non-empty to empty? Feel free to reach out if you have any questions or if you're not readily available at this time, just drop a note and I'd be happy to continue the work here 😃
Co-authored-by: angie pinilla <[email protected]>
…nk and modifying from a set LaunchType to blank.
Thanks for checking this PR out @anGie44 . I've updated the PR with the following changes:
Please let me know if you have any suggestions to improve the PR. After running my tests I get the following output:
|
Thanks @anGie44 . I believe those changes are good to go, however this is my first commit to Terraform. Please let me know if you have any other suggestions to make it better. |
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.
Great work @ianneub ! Only non-code change i'll make is update the description to Relate
to the original issue instead of Fix
since i think the issue is a valid breaking-change we should address in a major release.
Output of acceptance tests (commercial):
--- SKIP: TestAccAWSCloudWatchEventTarget_PartnerEventBus (0.00s)
--- PASS: TestAccAWSCloudWatchEventTarget_disappears (35.61s)
--- PASS: TestAccAWSCloudWatchEventTarget_sqs (39.84s)
--- PASS: TestAccAWSCloudWatchEventTarget_GeneratedTargetId (42.10s)
--- PASS: TestAccAWSCloudWatchEventTarget_ssmDocument (45.21s)
--- PASS: TestAccAWSCloudWatchEventTarget_http (48.44s)
--- PASS: TestAccAWSCloudWatchEventTarget_inputTransformerJsonString (56.68s)
--- PASS: TestAccAWSCloudWatchEventTarget_ecs (58.01s)
--- PASS: TestAccAWSCloudWatchEventTarget_ecsWithBlankTaskCount (58.04s)
--- PASS: TestAccAWSCloudWatchEventTarget_EventBusName (62.05s)
--- PASS: TestAccAWSCloudWatchEventTarget_input_transformer (68.45s)
--- PASS: TestAccAWSCloudWatchEventTarget_basic (73.92s)
--- PASS: TestAccAWSCloudWatchEventTarget_RetryPolicy_DeadLetterConfig (78.43s)
--- PASS: TestAccAWSCloudWatchEventTarget_full (80.06s)
--- PASS: TestAccAWSCloudWatchEventTarget_kinesis (81.19s)
--- PASS: TestAccAWSCloudWatchEventTarget_ecsWithBlankLaunchType (89.42s)
--- PASS: TestAccAWSCloudWatchEventTarget_batch (100.35s)
Update: I missed to mention we should update the documentation as well to be more explicit about this empty string option! I'll add this in 👍
This functionality has been released in v3.45.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. |
Community Note
Relates #16078
Output from acceptance testing: