daml/infra/modules/gcp_cdn_bucket
Gary Verhaegen f08dfa3264
Bump terraform (#12670)
We've been using an old version of Terraform for a long time now. The
main blocker used to be that there was no post-0.12 version of `secret`,
but that has now been resolved: there's a new fork, with new maintainers
(blessed by the original one and accepted by the Terraform registry)
[here].

I'll be upgrading one version at a time as 0.x versions are considered
major (and thus potentially breaking).

[here]: https://github.com/numtide/terraform-provider-secret

See https://github.com/digital-asset/daml/pull/12670 for details.

CHANGELOG_BEGIN
CHANGELOG_END
2022-01-31 15:46:59 +01:00
..
google_compute.tf update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
google_storage.tf update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
outputs.tf update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
README.md target s3 bucket with docs refresh script (#1287) 2019-05-21 22:26:07 +00:00
variables.tf update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
versions.tf Bump terraform (#12670) 2022-01-31 15:46:59 +01: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
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.