static-assets

gruntwork-io/static-assets/google

Terraform Module HCL GOOGLE

Modules for managing static assets (CSS, JS, images) in GCP

Install
module "static-assets" {
source = "gruntwork-io/static-assets/google"
version = "0.6.0"
}
plain text: /constructs/tfmod-gruntwork-io-static-assets-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

![Maintained by Gruntwork.io](https://gruntwork.io/?ref=repo_google_static_assets) ![GitHub tag (latest SemVer)](https://github.com/gruntwork-io/terraform-google-static-assets/releases/latest) !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

Inputs (11)
NameTypeDescriptionDefault
projectstringThe project ID to host the site in. required
website_domain_namestringThe name of the website and the Cloud Storage bucket to create (e.g. static.foo. required
create_dns_entryboolIf set to true, create a DNS CNAME Record in Cloud DNS with the domain name in v required
dns_managed_zone_namestringThe name of the Cloud DNS Managed Zone in which to create the DNS CNAME Record s required
dns_record_ttlnumberThe time-to-live for the site CNAME record set (seconds)60
index_pagestringBucket's directory index"index.html"
not_found_pagestringThe custom object to return when a requested resource is not found"404.html"
website_locationstringLocation of the bucket that will store the static website. Once a bucket has bee"US"
enable_versioningboolSet to true to enable versioning. This means the website bucket will retain all false
force_destroy_websiteboolIf set to true, this will force the delete of the website bucket when you run tefalse
force_destroy_access_logs_bucketboolIf set to true, this will force the delete of the access logs bucket when you rufalse
Outputs (3)
website_url — URL of the website
website_bucket — Self link to the website bucket
website_bucket_name — Name of the website bucket
Resources (2)
google_storage_bucket_objectgoogle_storage_object_acl
Details
FrameworkTerraform Module
LanguageHCL
Version0.6.0
Cloud GOOGLE
★ Stars37
Forks55
Total downloads121.7k
Inputs11
Outputs3
Resources2
Examples1
Submodules2
LicenseApache-2.0
Namespacegruntwork-io
Updated