You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/07/11 09:46:27 UTC

[camel-kamelets] 03/03: Added AWS SQS Infra file for Cloudformation

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-sqs-infra
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 89902ba1430baac1107793dfb500f215d7e6842a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 11 11:45:33 2023 +0200

    Added AWS SQS Infra file for Cloudformation
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md                   | 12 ++++++++++++
 infra/aws-sqs/cloudformation/aws-sqs.yaml | 11 +++++++++++
 2 files changed, 23 insertions(+)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
index 675be598..dda5ebb7 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=<queue-name>
+```
+
+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 00000000..afb32387
--- /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