daml/infra
Gary Verhaegen b4d211642c
fixup Terraform setup (#7373)
It looks like #6761 broke our Terraform setup by upgrading the nixpkgs
snapshot. That this has not been caught earlier is, I suppose, a
testament to how stable our infrastructure has become nowadays.

This is the same issue we had with the Google providers in #6402, i.e.
we are trying to pin the provider versions both at the nix level and at
the terraform level, with no way to force them to stay in sync.

I don't have a good proposal for such a way, and it seems rare and
innocuous enough to not warrant the investment to fix this at a more
fundamental level.

CHANGELOG_BEGIN
CHANGELOG_END
2020-09-10 16:28:18 +02:00
..
macos multistep macos setup (#5768) 2020-08-18 16:01:02 +02:00
modules/gcp_cdn_bucket replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
.gitignore open-sourcing daml 2019-04-04 09:33:38 +01:00
apply infra: add a VSTS windows agents (#368) 2019-04-18 11:20:57 +00:00
bazel_cache.tf replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
binaries.tf patching Bazel on Windows (infra bits, no patch yet) (#5918) 2020-05-12 23:16:04 +02:00
data_bucket.tf replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
dumps_bucket.tf replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
hoogle_server.tf hoogle db as tarbal (#7370) 2020-09-10 15:39:09 +02:00
main.tf fixup Terraform setup (#7373) 2020-09-10 16:28:18 +02:00
nix_cache.tf increase nix cache retention time (#6437) 2020-06-20 16:25:02 +02:00
periodic_killer.tf fix permissions on periodic-killer (#5307) 2020-03-31 19:04:40 +02:00
README.md terraform files for hoogle server (#1660) 2019-06-22 00:15:52 +00:00
vsts_agent_linux_startup.sh remove purge_old_agents (#6439) 2020-06-20 17:37:24 +02:00
vsts_agent_linux.tf switch CI nodes from n1-standard-8 to c2-* (#6514) 2020-06-27 12:20:29 +02:00
vsts_agent_windows.tf switch CI nodes from n1-standard-8 to c2-* (#6514) 2020-06-27 12:20:29 +02:00
writer.tf replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00

DAML

This is the terraform code used by the DAML repository to deploy supporting infrastructure such as the Bazel caches, Nix caches and Azure Pipeline (VSTS) Agents.

Setup

To deploy the infrastructure changes, you will to get access to the da-dev-gcp-daml-language Google project from DA IT. Then run gcloud auth login to configure the local credentials.

Deployment

All the infrastructure is currently deployed using Terraform. For convenience we have a little wrapper script that you can run to apply the latest changes:

$ ./apply

Writer service-account key

To avoid holding the secret key into the store, creating the key has to be done through the UI.

This can be done here: https://console.cloud.google.com/iam-admin/serviceaccounts/details/104272946446260011088?project=da-dev-gcp-daml-language

Setting up credentials

In order to interact with these Terraform files, you will need security to give you access to the relevant GCP project (da-dev-gcp-daml-language), and login via gcloud by running:

gcloud auth application-default login --account your.name@gcloud-domain.com