Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.8 KB

sns.md

File metadata and controls

57 lines (41 loc) · 1.8 KB
title cloud service description library brand og
How to create an AWS Simple Notification Service (SNS) with Pulumi
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
@pulumi/aws
aws
description image
Use Pulumi to code, deploy, and manage cloud, serverless, and container apps and infrastructure
/images/service/aws-sns.png

This reference shows how to use Pulumi to define an {{ page.cloud }} {{ page.service }} resource using pure code which can then be deployed to {{ page.cloud }} and managed as infrastructure as code.

What is {{ page.cloud }} {{ page.service }}?

{{ page.brand }}

{{ page.cloud }} {{ page.service }} {{ page.description }}. Find out more at AWS here.

Create an {{ page.cloud }} {{ page.service }} resource using {{ page.library }}

The {{ page.library }} library enables fine-grained control over the {{ page.cloud }} {{ page.service }} 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
});