Skip to content

dashdevs/terraform-google-static-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-google-static-website

Usage

IMPORTANT: We do not pin modules to versions in our examples because of the difficulty of keeping the versions in the documentation in sync with the latest released versions. We highly recommend that in your code you pin the version to the exact version you are using so that your infrastructure remains stable, and update versions in a systematic way so that they do not catch you by surprise.

Example usage for website module:

module "gcp_website" {
  source                = "dashdevs/static-website/gcp"
  bucket_location       = "EU"
  name_prefix           = gcp-example
  domain                = gcp.example.com
  domain_zone_name      = google_dns_managed_zone.example.name
}

Requirements

Providers

Name Version
aws >= 3.34
google >= 5.17.0

Inputs

Name Description Type Default Required
name_prefix Name prefix for the resources string n/a yes
domain Domain name of the website string n/a yes
gcp_project_id ID of the GCP project string n/a yes
bucket_location Variable for the location of the bucket (https://cloud.google.com/storage/docs/locations) list(string) null no
gcp_api_services_to_keep_upon_destroy List of GCP API services that should not be disabled during destruction . Available values in list are storage.googleapis.com, compute.googleapis.com, cloudresourcemanager.googleapis.com, dns.googleapis.com (https://console.cloud.google.com/apis/library) list(string) [] no
domain_zone_name Domain zone name for CNAME record, if not empty then record will be created string null no
cors_allowed_origins Used to declare domains from which the site will be accessed as a storage of static resources list(string) null no
cors_allowed_methods_additional List of additional CORS methods in addition to GET and HEAD list(string) null no

Outputs

Name Description
website_lb_ip_address IP address of the website Load Balancer to attach to a different DNS

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages