Skip to content

Releases: cookielab/terraform-aws-static-site

Origin path

16 Sep 14:42
eb2cb0d

Choose a tag to compare

adding ability to define origin path for cloudfront

4.1.3

06 Aug 10:22
d87777e

Choose a tag to compare

  • add KMS key for s3 bucket server side encryption
  • allow additional policies for kms_key_policy and s3_bucket_policy
  • toggle creation of iam user for deploy

4.1.2

05 Aug 09:09
08c65d1

Choose a tag to compare

4.1.2 Pre-release
Pre-release
  • add KMS key for s3 bucket server side encryption
  • allow additional policies for kms_key_policy and s3_bucket_policy
  • toggle creation of iam user for deploy

4.1.1

04 Jun 12:30
4.1.1

Choose a tag to compare

What's Changed

  • Workaround for OAI which cannot be deleted when is in use

Full Changelog: 4.1.0...4.1.1

4.1.0

27 May 20:09
4.1.0

Choose a tag to compare

Feat

  • Add support for 17.x Gitlab terraform provider

Full Changelog: 4.0.0...4.1.0

4.0.0

27 May 20:10

Choose a tag to compare

Feat

  • Migrate from Origin Access Identity to Origin Access Control for Cloudfront distribution

https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-introduces-origin-access-control-oac/

Full Changelog: 3.4.3...4.0.0

3.4.1

15 May 11:40

Choose a tag to compare

Feat

  • Add AWS S3 bucket regional domain name in outputs - aws_s3_bucket_regional_domain_name

Full Changelog: 3.4.0...3.4.1

3.4.0

11 Apr 22:21

Choose a tag to compare

Feat

Add possibilty assign custom cloudfront function.

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

resource "aws_cloudfront_function" "static_site_request" {
  name    = "static-site-request"
  runtime = "cloudfront-js-2.0"
  code    = file("${path.module}/resources/static-site-request.js")
  publish = true
}

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

  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"

  functions = {
    viewer_request = aws_cloudfront_function.static_site_request.arn
  }
}

3.3.0

17 Jan 23:32

Choose a tag to compare

Feat

Add possibilty to enable cloudfront access log.

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"

  logs_bucket_domain_name = module.logs_bucket.s3_bucket_bucket_domain_name
}

3.2.1

13 Oct 23:12
3.2.1

Choose a tag to compare

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"
    }
  ]
}