You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to publish static website files to an S3 bucket with proper MIME type, etag, acl, cache control, and object level server-side encryption.
Terraform Versions Supported
>=1.2.0
Example
module"s3-static-website" {
source="Lupus-Metallum/s3-static-website/aws"version="2.0.0"bucket_id=aws_s3_bucket.example.idfile_path="${path.module}/src/my-website-files/"# Where your index.html and TLD web content livesacl="public-read"storage_class="STANDARD"cache_control="max-age=31536000"content_language="en-US"sse_encrypt=true#Changing this variable will force the recreation of each file managed by this module
}