-
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: Allow tags with '@' on creation #19677
Conversation
Need to add |
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 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSIoTTopicRule_Tags\|TestAccAWSS3BucketObject_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSIoTTopicRule_Tags\|TestAccAWSS3BucketObject_tags -timeout 180m
=== RUN TestAccAWSIoTTopicRule_Tags
=== PAUSE TestAccAWSIoTTopicRule_Tags
=== RUN TestAccAWSS3BucketObject_tags
=== PAUSE TestAccAWSS3BucketObject_tags
=== RUN TestAccAWSS3BucketObject_tagsLeadingSingleSlash
=== PAUSE TestAccAWSS3BucketObject_tagsLeadingSingleSlash
=== RUN TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== PAUSE TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== RUN TestAccAWSS3BucketObject_tagsMultipleSlashes
=== PAUSE TestAccAWSS3BucketObject_tagsMultipleSlashes
=== CONT TestAccAWSIoTTopicRule_Tags
=== CONT TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== CONT TestAccAWSS3BucketObject_tagsMultipleSlashes
=== CONT TestAccAWSS3BucketObject_tags
=== CONT TestAccAWSS3BucketObject_tagsLeadingSingleSlash
--- PASS: TestAccAWSIoTTopicRule_Tags (41.35s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes (100.50s)
--- PASS: TestAccAWSS3BucketObject_tagsMultipleSlashes (100.63s)
--- PASS: TestAccAWSS3BucketObject_tags (100.90s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSingleSlash (100.93s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 104.718s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSIoTTopicRule_Tags\|TestAccAWSS3BucketObject_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSIoTTopicRule_Tags\|TestAccAWSS3BucketObject_tags -timeout 180m
=== RUN TestAccAWSIoTTopicRule_Tags
=== PAUSE TestAccAWSIoTTopicRule_Tags
=== RUN TestAccAWSS3BucketObject_tags
=== PAUSE TestAccAWSS3BucketObject_tags
=== RUN TestAccAWSS3BucketObject_tagsLeadingSingleSlash
=== PAUSE TestAccAWSS3BucketObject_tagsLeadingSingleSlash
=== RUN TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== PAUSE TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== RUN TestAccAWSS3BucketObject_tagsMultipleSlashes
=== PAUSE TestAccAWSS3BucketObject_tagsMultipleSlashes
=== CONT TestAccAWSIoTTopicRule_Tags
=== CONT TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes
=== CONT TestAccAWSS3BucketObject_tagsMultipleSlashes
=== CONT TestAccAWSS3BucketObject_tagsLeadingSingleSlash
=== CONT TestAccAWSS3BucketObject_tags
--- PASS: TestAccAWSIoTTopicRule_Tags (60.03s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes (108.61s)
--- PASS: TestAccAWSS3BucketObject_tags (109.34s)
--- PASS: TestAccAWSS3BucketObject_tagsMultipleSlashes (109.79s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSingleSlash (110.02s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 113.521s
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. |
Tags with
@
are valid for IoT topic rules, but they were not accepted at creation time. The AWS API handles its own URL encoding for this call, while we were handling it.Also validates S3 bucket object tags with
@
which were using the same URL encoding call.Closes #19653
Output from acceptance testing: