daml/infra/modules/gcp_cdn_bucket
Gary Verhaegen a244579470 set default page for docs (#1102)
This mirrors the current behaviour of docs.daml.com.
2019-05-13 22:34:21 +00:00
..
files set default page for docs (#1102) 2019-05-13 22:34:21 +00:00
google_compute.tf open-sourcing daml 2019-04-04 09:33:38 +01:00
google_storage.tf set default page for docs (#1102) 2019-05-13 22:34:21 +00:00
outputs.tf open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md set default page for docs (#1102) 2019-05-13 22:34:21 +00:00
variables.tf set default page for docs (#1102) 2019-05-13 22:34:21 +00:00

A Google Storage Bucket + CDN configuration

This modules contains essentially two things:

  • A GCS bucket to store objects into
  • A load-balancer connected to it

It also makes a few assumptions:

  • A service account will be created to write into the bucket
  • All objects are meant to be publicly-readable

Module config

> terraform-docs md .

Inputs

Name Description Type Default Required
cache_retention_days The number of days to keep the objects around string n/a yes
default_file The name of the file (from the files folder) to show for unknown paths. Currently one of cache or docs. string "cache" no
labels Labels to apply on all the resources map <map> no
name Name prefix for all the resources string n/a yes
project GCP project name string n/a yes
region GCP region in which to create the resources string n/a yes
ssl_certificate A reference to the SSL certificate, google managed or not string n/a yes

Outputs

Name Description
bucket_name Name of the GCS bucket that will receive the objects.
external_ip The external IP assigned to the global fowarding rule.