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:26 UTC

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

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 8c2b82412ad992574a480b48c5834cadbf3a9aa9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 11 11:39:41 2023 +0200

    Added AWS SQS Infra file for Terraform
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md         | 14 +-------------
 infra/aws-sqs/terraform/main.tf |  7 +++++++
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
index fd13eb45..675be598 100644
--- a/infra/aws-sqs/Readme.md
+++ b/infra/aws-sqs/Readme.md
@@ -25,7 +25,7 @@ The commmand to create the infra is:
 ```bash
 $ cd terraform/
 $ terraform init
-$ terraform apply -var="bucket_name=<bucket-name>"
+$ terraform apply -var="queue_name=<queue-name>"
 ```
 
 Once completed do:
@@ -35,18 +35,6 @@ $ cd terraform/
 $ terraform destroy
 ```
 
-## Cloudformation
 
-The commmand to create the infra is:
-
-```bash
-$ aws cloudformation deploy --template-file cloudformation/aws-s3.yaml --stack-name my-new-stack --parameter-overrides BucketName=<bucket-name>
-```
-
-Once completed do:
-
-```bash
-$ aws cloudformation delete-stack --stack-name my-new-stack
-```
 
 
diff --git a/infra/aws-sqs/terraform/main.tf b/infra/aws-sqs/terraform/main.tf
new file mode 100644
index 00000000..425bf5d1
--- /dev/null
+++ b/infra/aws-sqs/terraform/main.tf
@@ -0,0 +1,7 @@
+variable "queue_name" {
+  type = string
+}
+
+resource "aws_sqs_queue" "example" {
+  name = var.queue_name
+}