Entradas

Mostrando las entradas de abril, 2023

Create a SQS and subscribe to SNS | create a SNS in AWS and subscribe a queue (SQS)

Stack to Create a SQS and subscribe to SNS | create a SNS in AWS and subscribe a queue (SQS) Cloudformation: Template for create a SNS in AWS and subscribe a queue (SQS) Description: Create an SNS Parameters: Stage: Description: Environment Name Type: String CrossAccountExternalAccountId: Type: String Description: Account Id StandardTopicName: Type: String Description: Queue Name Resources: SnsTopicRef: Type: AWS::SNS::Topic Properties: TopicName: !Join [ "-", [!Ref StandardTopicName] ] DisplayName: !Join [ "-", [!Ref StandardTopicName] ] Tags: - Key: "environment" Value: !Ref Stage SnsTopicRefPolicy: Type: AWS::SNS::TopicPolicy Properties: PolicyDocument: Version: &

Stack to create a SNS in AWS

Stack to create a SNS in AWS Cloudformation: Description: Create an SNS Parameters: Stage: Description: Environment Name Type: String CrossAccountExternalAccountId: Type: String Description: Account Id StandardTopicName: Type: String Description: Queue Name Resources: SnsTopicRef: Type: AWS::SNS::Topic Properties: TopicName: !Join [ "-", [!Ref StandardTopicName] ] DisplayName: !Join [ "-", [!Ref StandardTopicName] ] Tags: - Key: "environment" Value: !Ref Stage SnsTopicRefPolicy: Type: AWS::SNS::TopicPolicy Properties: PolicyDocument: Version: "2012-10-17" Statement: - Sid: "allow-cross-account-lambda"

Stack to create a SQS in AWS

Stack to create a SQS in AWS Cloudformation: AWSTemplateFormatVersion: '2010-09-09' Description: Template to create the sqs in aws Parameters: Stage: Description: Environment Name Type: String StandardQueueName: Type: String Description: Queue Name Resources: QueueRefDLQ: Type: AWS::SQS::Queue Properties: QueueName: !Join [ "-", [!Ref StandardQueueName, "dlq"] ] Tags: - Key: "environment" Value: !Ref Stage QueueRef: Type: AWS::SQS::Queue Properties: QueueName: !Ref StandardQueueName ReceiveMessageWaitTimeSeconds: 10 VisibilityTimeout: 900 KmsMasterKeyId: alias/aws/sqs RedrivePolicy: deadLetterTargetArn: !GetAtt - QueueRefDLQ