static-assets
gruntwork-io/static-assets/google
Modules for managing static assets (CSS, JS, images) in GCP
  !Terraform Version Static Assets Modules This repo contains modules for managing static assets (CSS, JS, images) in GCP. Quickstart If you want to quickly launch a static website using Google Cloud Storage, you can run the example that is in the root of this repo. Check out the cloud-storage-static-website example documentation for instructions. What's in this repo This repo has the following folder structure: - root: The root folder contains an example of how to launch a static website using Google Cloud Storage. See cloud-storage-static-website example documentation for the documentation. - modules
| Name | Type | Description | Default |
|---|---|---|---|
| project | string | The project ID to host the site in. | required |
| website_domain_name | string | The name of the website and the Cloud Storage bucket to create (e.g. static.foo. | required |
| create_dns_entry | bool | If set to true, create a DNS CNAME Record in Cloud DNS with the domain name in v | required |
| dns_managed_zone_name | string | The name of the Cloud DNS Managed Zone in which to create the DNS CNAME Record s | required |
| dns_record_ttl | number | The time-to-live for the site CNAME record set (seconds) | 60 |
| index_page | string | Bucket's directory index | "index.html" |
| not_found_page | string | The custom object to return when a requested resource is not found | "404.html" |
| website_location | string | Location of the bucket that will store the static website. Once a bucket has bee | "US" |
| enable_versioning | bool | Set to true to enable versioning. This means the website bucket will retain all | false |
| force_destroy_website | bool | If set to true, this will force the delete of the website bucket when you run te | false |
| force_destroy_access_logs_bucket | bool | If set to true, this will force the delete of the access logs bucket when you ru | false |
website_url — URL of the websitewebsite_bucket — Self link to the website bucketwebsite_bucket_name — Name of the website bucket