Releases: cookielab/terraform-aws-static-site
Releases · cookielab/terraform-aws-static-site
4.1.0
4.0.0
Feat
- Migrate from Origin Access Identity to Origin Access Control for Cloudfront distribution
Full Changelog: 3.4.3...4.0.0
3.4.1
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
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
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
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"
}
]
}