Skip to content

Releases: cookielab/terraform-aws-static-site

4.1.0

27 May 20:09
4.1.0
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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"
    }
  ]
}

2.4.0

12 Sep 11:26
Compare
Choose a tag to compare

Feat

  • add possibility to override status codes with override_status_code_404 & override_status_code_403 variables

3.1.0

27 Jul 15:03
3.1.0
Compare
Choose a tag to compare

Feat

  • add possibility to override status codes with override_status_code_404 & override_status_code_403 variables

3.0.0

04 Jul 15:23
3.0.0
Compare
Choose a tag to compare

Requires Terraform 1.5+ and AWS Provider 5.x

2.3.0

29 May 12:44
2.3.0
Compare
Choose a tag to compare

Chore

  • Allow to use GitLab provider 16.x