Skip to content

Instantly share code, notes, and snippets.

@barbaromatrix
Created November 8, 2021 16:24
Show Gist options
  • Save barbaromatrix/25c6261295d13beb618b6e11e8ad3926 to your computer and use it in GitHub Desktop.
Save barbaromatrix/25c6261295d13beb618b6e11e8ad3926 to your computer and use it in GitHub Desktop.
SQS Terraform with localstack
# To create these resources:
# 1) terraform init
# 2) terraform plan
# 3) terraform apply (it'll ask you to confirm typing 'yes')
provider "aws" {
region = "sa-east-1"
access_key = "fake"
secret_key = "fake"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
endpoints {
sqs = "http://localhost:4566"
}
}
resource "aws_sqs_queue" "name_of_sqs" {
name = "name_of_sqs"
tags = {
Environment = "local"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment