diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 191f4e2..8669af0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -66,6 +66,12 @@ jobs: - name: Run Terraform validate run: terraform validate + - name: Terraform docs + uses: terraform-docs/gh-actions@v1.3.0 + with: + config-file: .terraform-docs.yml + fail-on-diff: true + - name: Terraform Trivy Security Scan uses: aquasecurity/trivy-action@0.28.0 with: @@ -105,12 +111,6 @@ jobs: tflint --init tflint --recursive - - name: Terraform docs - uses: terraform-docs/gh-actions@v1.3.0 - with: - config-file: .terraform-docs.yml - fail-on-diff: true - plan-dev-us-east-1: name: "[DEV - us-east-1] Terraform Plan" runs-on: ubuntu-latest diff --git a/README.md b/README.md index 8303539..9378d83 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ ## Providers -No providers. +| Name | Version | +|------|---------| +| [aws](#provider\_aws) | 5.90.0 | ## Modules @@ -16,13 +18,16 @@ No modules. ## Resources -No resources. +| Name | Type | +|------|------| +| [aws_sqs_queue.terraform_queue](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue) | resource | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [aws\_region](#input\_aws\_region) | Region to deploy the resources | `string` | n/a | yes | +| [queue\_name](#input\_queue\_name) | Queue name to be created | `string` | n/a | yes | ## Outputs diff --git a/main.tf b/main.tf index 8b13789..6f6e0d4 100644 --- a/main.tf +++ b/main.tf @@ -1 +1,5 @@ +resource "aws_sqs_queue" "terraform_queue" { + name = var.queue_name + sqs_managed_sse_enabled = true +} diff --git a/variables.tf b/variables.tf index 54a348e..0e1fb79 100644 --- a/variables.tf +++ b/variables.tf @@ -2,3 +2,8 @@ variable "aws_region" { description = "Region to deploy the resources" type = string } + +variable "queue_name" { + description = "Queue name to be created" + type = string +} diff --git a/vars/dev/us-east-1.tfvars b/vars/dev/us-east-1.tfvars index bb891da..4281fed 100644 --- a/vars/dev/us-east-1.tfvars +++ b/vars/dev/us-east-1.tfvars @@ -1 +1,2 @@ aws_region = "us-east-1" +queue_name = "my-queue" \ No newline at end of file diff --git a/vars/prod/us-east-1.tfvars b/vars/prod/us-east-1.tfvars index ecc8022..c0d38b4 100644 --- a/vars/prod/us-east-1.tfvars +++ b/vars/prod/us-east-1.tfvars @@ -1,2 +1,3 @@ aws_region = "us-east-1" +queue_name = "my-queue"