mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
cfae2d88f5
* fixup terraform config Two changes have happened recently that have invalidated the current Terraform files: 1. The Terraform version has gone through a major, incompatible upgrade (#8190); the required updates for this are reflected in the first commit of this PR. 2. The certificate used to serve [Hoogle](https://hoogle.daml.com) was about to expire, so Edward created a new one and updated the config directly. The second commit in this PR updates the Terraform config to match that new, already-in-prod setting. Note: This PR applies cleanly, as there are no resulting changes in Terraform's perception of the target state from 1, and the change from 2 has already been applied through other channels. CHANGELOG_BEGIN CHANGELOG_END * update hoogle cert
52 lines
1.1 KiB
HCL
52 lines
1.1 KiB
HCL
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
terraform {
|
|
backend "gcs" {
|
|
bucket = "da-dev-gcp-daml-language-tfstate"
|
|
prefix = "daml"
|
|
}
|
|
}
|
|
|
|
provider "google" {
|
|
project = "da-dev-gcp-daml-language"
|
|
region = "us-east4"
|
|
}
|
|
|
|
provider "google-beta" {
|
|
project = "da-dev-gcp-daml-language"
|
|
region = "us-east4"
|
|
}
|
|
|
|
provider "secret" {
|
|
version = "~>1.1"
|
|
}
|
|
|
|
provider "template" {
|
|
version = "~>2.2"
|
|
}
|
|
|
|
data "google_project" "current" {
|
|
project_id = local.project
|
|
}
|
|
|
|
locals {
|
|
labels = {
|
|
cost-allocation = "daml-language"
|
|
host-group = "buildpipeline"
|
|
infra-owner = "daml-language"
|
|
managed = "true"
|
|
target = "infra"
|
|
}
|
|
|
|
machine-labels = merge(local.labels, map("env", "production"))
|
|
|
|
project = "da-dev-gcp-daml-language"
|
|
region = "us-east4"
|
|
zone = "us-east4-a"
|
|
|
|
ssl_certificate_hoogle = "https://www.googleapis.com/compute/v1/projects/da-dev-gcp-daml-language/global/sslCertificates/hoogle-google-cert"
|
|
}
|
|
|
|
resource "secret_resource" "vsts-token" {}
|