From 8534c140a984a59d1d05bfe2fd2ccc861de66761 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 11 Jul 2023 11:45:33 +0200 Subject: [PATCH] Added AWS SQS Infra file for Cloudformation Signed-off-by: Andrea Cosentino --- infra/aws-sqs/Readme.md | 12 ++++++++++++ infra/aws-sqs/cloudformation/aws-sqs.yaml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 infra/aws-sqs/cloudformation/aws-sqs.yaml diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md index 675be5983..dda5ebb7e 100644 --- a/infra/aws-sqs/Readme.md +++ b/infra/aws-sqs/Readme.md @@ -35,6 +35,18 @@ $ cd terraform/ $ terraform destroy ``` +## Cloudformation +The commmand to create the infra is: + +```bash +$ aws cloudformation deploy --template-file cloudformation/aws-sqs.yaml --stack-name my-new-stack --parameter-overrides QueueName= +``` + +Once completed do: + +```bash +$ aws cloudformation delete-stack --stack-name my-new-stack +``` diff --git a/infra/aws-sqs/cloudformation/aws-sqs.yaml b/infra/aws-sqs/cloudformation/aws-sqs.yaml new file mode 100644 index 000000000..afb323870 --- /dev/null +++ b/infra/aws-sqs/cloudformation/aws-sqs.yaml @@ -0,0 +1,11 @@ +Parameters: + QueueName: + Type: String + Description: The queue name. + +Resources: + SQSQueue: + Type: 'AWS::SQS::Queue' + Properties: + QueueName: + Ref: QueueName