Creating an AWS SNS with Pulumi

This reference shows how to use Pulumi to define an AWS SNS resource using pure code which can then be deployed to AWS and managed as infrastructure as code.

What is AWS SNS?


AWS SNS is a flexible, fully managed pub/sub messaging and mobile notifications service for coordinating the delivery of messages to subscribing endpoints and clients. Find out more at AWS here.

Create an AWS SNS resource using @pulumi/aws

The @pulumi/aws library enables fine-grained control over the AWS SNS resource meaning it can be coded, deployed, and managed entirely in code.

const aws = require("@pulumi/aws");

const topic = new aws.sns.Topic("mytopic");

const topicSubscription = new aws.sns.TopicSubscription("mytopicsubscription", {
    topic: topic,
    protocol: "sqs",
    endpoint: queue.arn
Register for Pulumi UP, June 15, 2023