-
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_iot_topic_rule: Fix optional attributes #7471
Conversation
@bflad I made a few additional updates along with the added test case. Please let me know if there is anything that I may have missed. |
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.
Getting very close! This looks fine, I just want to be sure we're appropriately covering both configured and unconfigured scenarios to prevent regressions in the future.
* Add an acceptance test for asserting a successful dynamodb request * Move optional attributes out of the default API payload; They are now only added if specified in the terraform configuration for dynamodb.
b7d6c0e
to
71133dd
Compare
* Add aws.StringValue to protect against nil pointers * Update variables to follow modern provider naming conventions * Add initial capacity size for items slice
71133dd
to
a966eb3
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, thanks @nywilken! 🚀
--- PASS: TestAccAWSIoTTopicRule_cloudwatchmetric (10.73s)
--- PASS: TestAccAWSIoTTopicRule_kinesis (10.85s)
--- PASS: TestAccAWSIoTTopicRule_basic (10.95s)
--- PASS: TestAccAWSIoTTopicRule_lambda (11.02s)
--- PASS: TestAccAWSIoTTopicRule_firehose (11.12s)
--- PASS: TestAccAWSIoTTopicRule_republish (11.06s)
--- PASS: TestAccAWSIoTTopicRule_sqs (11.14s)
--- PASS: TestAccAWSIoTTopicRule_cloudwatchalarm (11.74s)
--- PASS: TestAccAWSIoTTopicRule_sns (11.97s)
--- PASS: TestAccAWSIoTTopicRule_importbasic (12.09s)
--- PASS: TestAccAWSIoTTopicRule_elasticsearch (12.25s)
--- PASS: TestAccAWSIoTTopicRule_s3 (12.65s)
--- PASS: TestAccAWSIoTTopicRule_dynamodb (15.98s)
--- PASS: TestAccAWSIoTTopicRule_firehose_separator (16.02s)
This has been released in version 1.59.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Terraform requires arguments that are optional when creating aws_iot_topic_rule
Logged POST request before update
Logged POST request after update
closes #6195