Skip to content

Commit

Permalink
Rationalise bucket creation (#211)
Browse files Browse the repository at this point in the history
* chore: shorten bucket names to fit limits and fix source bucket prefix

* chore: use local var for setting aws provider region
  • Loading branch information
luigidifraiawork authored May 17, 2024
1 parent fc974ee commit 4209232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/fargate-examples/queue-processing/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = "us-west-2"
region = local.region
}

data "aws_caller_identity" "current" {}
Expand Down Expand Up @@ -108,7 +108,7 @@ module "source_s3_bucket" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "~> 3.15"

bucket = "${local.name}-source-${local.region}-"
bucket_prefix = "${local.name}-src-${local.region}-"

# For example only - please evaluate for your environment
force_destroy = true
Expand All @@ -131,7 +131,7 @@ module "destination_s3_bucket" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "~> 3.15"

bucket_prefix = "${local.name}-destination-${local.region}-"
bucket_prefix = "${local.name}-dst-${local.region}-"

# For example only - please evaluate for your environment
force_destroy = true
Expand Down

0 comments on commit 4209232

Please sign in to comment.