daml/infra/main.tf
2019-08-13 17:23:03 +01:00

45 lines
1.1 KiB
HCL

# Copyright (c) 2019 The DAML Authors. 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"
}
data "google_project" "current" {
project_id = "${local.project}"
}
locals {
labels = {
cost-allocation = "daml-language"
host-group = "buildpipeline"
infra-owner = "daml-language"
managed = "true"
# default the target name to be the name of the folder
target = "${basename(path.module)}"
}
project = "da-dev-gcp-daml-language"
region = "us-east4"
zone = "us-east4-a"
// maintained by DA security
ssl_certificate = "https://www.googleapis.com/compute/v1/projects/da-dev-gcp-daml-language/global/sslCertificates/da-ext-wildcard"
ssl_certificate_hoogle = "https://www.googleapis.com/compute/v1/projects/da-dev-gcp-daml-language/global/sslCertificates/daml-lang-hoogle-app-service-https-cert"
}