From 09d6ae9c047243dc64ec9a094984b6d4fc3f64c3 Mon Sep 17 00:00:00 2001 From: Jan David Date: Tue, 16 Jan 2024 17:30:09 +0100 Subject: [PATCH] Output the ARN of the SQS queue --- terragrunt/modules/crates-io-logs/_terraform.tf | 10 ---------- terragrunt/modules/crates-io-logs/outputs.tf | 4 ++++ terragrunt/modules/crates-io-logs/variables.tf | 9 +++++++++ 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 terragrunt/modules/crates-io-logs/outputs.tf create mode 100644 terragrunt/modules/crates-io-logs/variables.tf diff --git a/terragrunt/modules/crates-io-logs/_terraform.tf b/terragrunt/modules/crates-io-logs/_terraform.tf index 3278468fe..a4f0a52be 100644 --- a/terragrunt/modules/crates-io-logs/_terraform.tf +++ b/terragrunt/modules/crates-io-logs/_terraform.tf @@ -8,13 +8,3 @@ terraform { } } } - -variable "bucket_account" { - type = number - description = "Account ID of the S3 bucket which will send events to the SQS queue" -} - -variable "bucket_arn" { - type = string - description = "ARN of the S3 bucket which will send events to the SQS queue" -} diff --git a/terragrunt/modules/crates-io-logs/outputs.tf b/terragrunt/modules/crates-io-logs/outputs.tf new file mode 100644 index 000000000..67e40ca94 --- /dev/null +++ b/terragrunt/modules/crates-io-logs/outputs.tf @@ -0,0 +1,4 @@ +# ARN of the SQS queue that receives S3 bucket notifications +output "sqs_queue_arn" { + value = aws_sqs_queue.cdn_log_event_queue.arn +} diff --git a/terragrunt/modules/crates-io-logs/variables.tf b/terragrunt/modules/crates-io-logs/variables.tf new file mode 100644 index 000000000..94d931b1f --- /dev/null +++ b/terragrunt/modules/crates-io-logs/variables.tf @@ -0,0 +1,9 @@ +variable "bucket_account" { + type = number + description = "Account ID of the S3 bucket which will send events to the SQS queue" +} + +variable "bucket_arn" { + type = string + description = "ARN of the S3 bucket which will send events to the SQS queue" +}