Sha256: 19af6c3624449cc029b22346c356629b6c527f5ad7068f10b6349f89ae54275e
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
#!/bin/bash if [ ! -f /tmp/terraform-bosh.key.json ]; then gcloud iam service-accounts create terraform-bosh gcloud iam service-accounts keys create /tmp/terraform-bosh.key.json \ --iam-account ${service_account_email} gcloud projects add-iam-policy-binding ${projectid} \ --member serviceAccount:${service_account_email} \ --role roles/owner fi export GOOGLE_CREDENTIALS=$(cat /tmp/terraform-bosh.key.json) docker run -i -t \ -e "GOOGLE_CREDENTIALS=${GOOGLE_CREDENTIALS}" \ -v `pwd`:/$(basename `pwd`) \ -w /$(basename `pwd`) \ hashicorp/terraform:light apply \ -var service_account_email=${service_account_email} \ -var projectid=${projectid} \ -var region=${region} \ -var zone-1=${zone}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kite-0.0.4 | tpl/gcp/scripts/01_create_infrastructure.sh |
kite-0.0.3 | tpl/gcp/scripts/01_create_infrastructure.sh |