-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New action: aws_sns_publish
#44232
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
New action: aws_sns_publish
#44232
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
Latest: % make t T=TestAccSNSPublishAction K=sns
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_sns_publish_message 🌿...
TF_ACC=1 go1.24.6 test ./internal/service/sns/... -v -count 1 -parallel 20 -run='TestAccSNSPublishAction' -timeout 360m -vet=off
2025/09/16 22:42:07 Creating Terraform AWS Provider (SDKv2-style)...
2025/09/16 22:42:07 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccSNSPublishAction_basic
=== PAUSE TestAccSNSPublishAction_basic
=== RUN TestAccSNSPublishAction_withAttributes
=== PAUSE TestAccSNSPublishAction_withAttributes
=== CONT TestAccSNSPublishAction_basic
=== CONT TestAccSNSPublishAction_withAttributes
--- PASS: TestAccSNSPublishAction_withAttributes (98.50s)
--- PASS: TestAccSNSPublishAction_basic (98.51s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sns 103.802s |
After rebasing: % make t T=TestAccSNSPublishAction_ K=sns
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_sns_publish_message 🌿...
TF_ACC=1 go1.24.6 test ./internal/service/sns/... -v -count 1 -parallel 20 -run='TestAccSNSPublishAction_' -timeout 360m -vet=off
2025/09/17 12:02:14 Creating Terraform AWS Provider (SDKv2-style)...
2025/09/17 12:02:14 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccSNSPublishAction_basic
=== PAUSE TestAccSNSPublishAction_basic
=== RUN TestAccSNSPublishAction_withAttributes
=== PAUSE TestAccSNSPublishAction_withAttributes
=== CONT TestAccSNSPublishAction_basic
=== CONT TestAccSNSPublishAction_withAttributes
--- PASS: TestAccSNSPublishAction_basic (97.50s)
--- PASS: TestAccSNSPublishAction_withAttributes (97.59s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sns 103.131s |
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 🎉
% TF_ACC_TERRAFORM_PATH=/Users/jaredbaker/go/bin/terraform make t K=sns T=TestAccSNSPublishAction_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_sns_publish_message 🌿...
TF_ACC=1 go1.24.6 test ./internal/service/sns/... -v -count 1 -parallel 20 -run='TestAccSNSPublishAction_' -timeout 360m -vet=off
2025/09/17 15:39:51 Creating Terraform AWS Provider (SDKv2-style)...
2025/09/17 15:39:51 Initializing Terraform AWS Provider (SDKv2-style)...
--- PASS: TestAccSNSPublishAction_withAttributes (97.28s)
--- PASS: TestAccSNSPublishAction_basic (97.28s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sns 103.937s
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v6.14.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! |
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
Since these actions may be merged in bulk, extra checklist to help:
terraform_data
triggerwebsite/docs/actions/
fileregion
pattern (framework.WithRegionModel
)Add
aws_sns_publish
ActionThis PR adds a new Terraform action for publishing messages to Amazon SNS topics. The action enables imperative message publishing with support for message attributes, subjects, and different message structures.
Example Usage
Features
Relations
aws_lambda_invoke
#43972aws_cloudfront_create_invalidation
#43955aws_ses_send_email
#44214aws_sns_publish
#44232aws_ec2_stop_instance
#43700References
Output from Acceptance Testing