-
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
Add support for cloudwatch event target import #9431
Add support for cloudwatch event target import #9431
Conversation
b1363d3
to
64c2fed
Compare
e719fd5
to
70b5e91
Compare
ImportState: true, | ||
ImportStateIdFunc: testAccAWSCloudWatchEventTargetImportStateIdFunc("aws_cloudwatch_event_target.moobar"), | ||
ImportStateVerify: true, | ||
}, |
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 @chaspy - thanks so much for this contribution! Overall, this looks great, but for the sake of completeness, could you add this block to all of the TestAccAWSCloudWatchEventTarget
acceptance tests in this file?
{
ResourceName: "aws_cloudwatch_event_target.moobar",
ImportState: true,
ImportStateIdFunc: testAccAWSCloudWatchEventTargetImportStateIdFunc("aws_cloudwatch_event_target.moobar"),
ImportStateVerify: true,
},
You'll want to make sure that ResourceName
matches for each test since it looks like they vary a bit from test to test. If you're able to add these and re-run the acceptance tests for us, we can go ahead and get this merged in. Thanks! 👍
67edbd2
to
98d0c6a
Compare
Output from acceptance testing:
|
98d0c6a
to
e5b0716
Compare
😢
|
e5b0716
to
d69b5e1
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.
Thanks for adding in the additional tests, @chaspy! 👍
--- PASS: TestAccAWSCloudWatchEventTarget_sqs (9.64s)
--- PASS: TestAccAWSCloudWatchEventTarget_missingTargetId (11.21s)
--- PASS: TestAccAWSCloudWatchEventTarget_ssmDocument (13.62s)
--- PASS: TestAccAWSCloudWatchEventTarget_ecs (13.89s)
--- PASS: TestAccAWSCloudWatchEventTarget_basic (15.58s)
--- PASS: TestAccAWSCloudWatchEventTarget_input_transformer (28.17s)
--- PASS: TestAccAWSCloudWatchEventTarget_kinesis (78.65s)
--- PASS: TestAccAWSCloudWatchEventTarget_full (79.37s)
--- PASS: TestAccAWSCloudWatchEventTarget_batch (80.64s)
🚀
This has been released in version 2.21.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, documentation updates, or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Fixes #9264
Release note for CHANGELOG:
Output from acceptance testing: