IMPORTANT: The master branch is used in source just as an example. You can directly supply a topic and ARN by hand in the topic_arn property along with the queue ARN: Alternatively you can use the ARN properties of a managed SNS topic and SQS queue: You can subscribe SNS topics to SQS queues in different Amazon accounts and regions: Partially supported SNS protocols include: Unsupported protocols include the following: These are unsupported because the endpoint needs to be authorized and does not generate an ARN until the target email address has been validated. Our track record is not even funny. In addition to all arguments above, the following attributes are exported: SNS Topic Subscriptions can be imported using the subscription arn, e.g. How to use Terraform to create an AWS SNS topic and SQS queue together with a Lambda function. We're a DevOps Professional Services company based in Los Angeles, CA.
Come here to collaborate on answers, find solutions, and get ideas about the products and services we value.
We offer paid support on all of our projects. Terraform module which creates SNS … Additional attributes to distinguish this SNS topic, The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. they're used to gather information about the pages you visit and how many clicks you need to accomplish a task. It's possible to subscribe SQS as Dead Letter Queue. We ❤️ Open Source Software. Apache 2 Licensed.
If the "aws_sns_topic_subscription" is using a provider with a different region than the SNS topic, terraform will fail to create the subscription. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. NOTE: If SNS topic and SQS queue are in different AWS accounts but the same region it is important for the "aws_sns_topic_subscription" to use the AWS provider of the account with the SQS queue.
This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally sweet infrastructure. For more information, see our Privacy Statement. Shoot us an email. Join us every Wednesday via Zoom for our weekly "Lunch & Learn" sessions.
In your code, do not pin to master because there may be breaking changes between releases. =).
[ci skip] Create ".pre-commit-config.yaml". https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html, https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html. This project is part of our comprehensive "SweetOps" approach towards DevOps. Unfortunately redrive_policy is not yet available in terraform. The most likely use case for Terraform users will probably be SQS queues. This resource allows you to automatically place messages sent to SNS topics in SQS queues, send them as HTTP(S) POST requests to a given endpoint, send SMS messages, or notify devices / applications. Work directly with our team of DevOps experts via email, slack, and video conferencing. they're used to log you in. If nothing happens, download the GitHub extension for Visual Studio and try again. registry.terraform.io/modules/terraform-aws-modules/sns/aws, download the GitHub extension for Visual Studio, from terraform-aws-modules/terraform-provider-…. Please let us know by leaving a testimonial! It's FREE for everyone! We use essential cookies to perform essential website functions, e.g.