github cookielab/terraform-aws-static-site 3.2.1

latest releases: 4.4.0, 4.3.1, 4.3.0...
13 months ago

Feat

Add possibilty to add proxy path. For example when you need access to Backend API on same domain as FE but on path

provider "aws" {
  alias  = "us_east_1"
  region = "us-east-1"
}

module "static-site" {
  source  = "cookielab/static-site/aws"
  version = "~> 2.1"

  providers = {
    aws.us_east_1 = aws.us_east_1
  }

  domains        = ["www.example.com"]
  domain_zone_id = aws_route53_zone.example_com.zone_id
  s3_bucket_name = "example_com_web"

  proxy_paths = [
    {
       origin_domain = "backend.example.com"
       path_prefix = "/api"
    }
  ]
}

Don't miss a new terraform-aws-static-site release

NewReleases is sending notifications on new releases.