Skip to content

Releases: dashdevs/terraform-aws-static-website

v3.0.0

17 Oct 01:55

Choose a tag to compare

What's New

  • CloudFront Function Support: Added cloudfront_event_functions variable to attach viewer-request and viewer-response functions to the distribution
  • Basic Auth: Introduced cloudfront-functions/basic-auth submodule for simple CloudFront Basic Authentication using Key Value Store
  • Provider Configuration Update: The us-east-1 (Virginia) provider is now expected as an aliased provider (aws.virginia) from the root module, improving compatibility and fixing legacy module issues when using count or for_each

Breaking Changes

  • Requires aliased provider aws.virginia defined in the root module
  • Updated provider to aws >= 4.42 and Terraform to >= 1.5.2

Upgrade

  1. Define an aliased provider for us-east-1 (Virginia) in your root module:
provider "aws" {
  region = "eu-west-1"
}

provider "aws" {
  alias  = "virginia"
  region = "us-east-1"
}
  1. Pass the aliased provider into the module using the providers map:
module "website" {
  source    = "dashdevs/static-website/aws"
  version   = "~> 3.0"
  providers = { aws.virginia = aws.virginia }
  # other module inputs...
}
  1. Update your terraform block to require the new provider version (>= 4.42) and Terraform version (>= 1.5.2)
  2. Apply the configuration to safely migrate to v3.0.0

v2.1.1

22 Apr 20:31

Choose a tag to compare

Expose bucket and distribution ARNs via outputs

v2.1.0

28 Sep 02:23

Choose a tag to compare

Added support for domain-level redirection with the new redirect_to variable, enabling HTTPS-enforced redirection of all requests. This simplifies setup for common use cases like www domain redirects.

v2.0.0

23 Sep 17:45

Choose a tag to compare

What's New

  • Migrate to Cache Policy: Replaced deprecated CloudFront cache settings with aws_cloudfront_cache_policy for better flexibility and alignment with AWS recommendations
  • OAI to OAC Migration: Switched from Origin Access Identity (OAI) to Origin Access Control (OAC) for improved security and broader region support
  • Region-Specific S3 Endpoint: Updated CloudFront to use region-specific S3 bucket endpoints to prevent redirects and improve performance

Breaking Changes

  • OAI to OAC Migration: An active OAI can't be deleted until CloudFront is updated to use OAC

Upgrade

  1. Run terraform apply -target=aws_cloudfront_distribution.website to update CloudFront
  2. Apply the full configuration afterward to safely remove OAI

v1.1.0

12 Mar 18:44

Choose a tag to compare

Added support for custom CloudFront permissions for S3 bucket access

v1.0.1

19 Feb 11:10

Choose a tag to compare

Fixed certificate validation when DNS feature is disabled

v1.0.0

16 Feb 16:54
2fe30bc

Choose a tag to compare

Release 1.0