https://github.com/labd/terraform-aws-static-site
AWS static site module for Terraform, with support for basic authentication
https://github.com/labd/terraform-aws-static-site
Last synced: 3 months ago
JSON representation
AWS static site module for Terraform, with support for basic authentication
- Host: GitHub
- URL: https://github.com/labd/terraform-aws-static-site
- Owner: labd
- License: mit
- Created: 2019-05-28T07:18:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T09:29:00.000Z (over 2 years ago)
- Last Synced: 2025-10-19T21:44:50.753Z (8 months ago)
- Language: HCL
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Terraform AWS Static Site
=========================
Usage
-----
```
module "static_site" {
source = "git::ssh://git@github.com/labd/terraform-aws-static-site"
name = "full-name-for-s3-bucket"
description = "Description for CloudFront" # Optional
deploy_role_arn = "${module.ecs_deploy_role.role_arn}"
ssl_certificate_arn = "..." # Certificate has to be within the US-East-1 region
authentication = [
"username:password",
]
domains = [
"sub.example.com",
]
providers = {
aws = "aws"
aws.useast = "aws.useast" # Required for Lambda@Edge
}
}
```
Output
------
- domain_name = CloudFront domain name for Route53
- hosted_zone_id = CloudFront hosted zone id for Route53