alphagov/gsp-teams Step 4. Create Cluster from cluster.tf

by pauldougan
macOS ◆ xterm-256color ◆ bash 719 views

export DOMAIN=cluster1.gds-re-run-sandbox.aws.ext.govsvc.uk cd terraform/clusters/${DOMAIN} aws-vault exec run-sandbox – docker run -it
–env AWS_DEFAULT_REGION
–env AWS_REGION
–env AWS_ACCESS_KEY_ID
–env AWS_SECRET_ACCESS_KEY
–env AWS_SESSION_TOKEN
–env AWS_SECURITY_TOKEN
–env DOMAIN
–volume=$(pwd)/../../../:/terraform
-w /terraform/terraform/clusters/${DOMAIN}
govsvc/terraform init

aws-vault exec run-sandbox – docker run -it
–env AWS_DEFAULT_REGION
–env AWS_REGION
–env AWS_ACCESS_KEY_ID
–env AWS_SECRET_ACCESS_KEY
–env AWS_SESSION_TOKEN
–env AWS_SECURITY_TOKEN
–env DOMAIN
–volume=$(pwd)/../../../:/terraform
-w /terraform/terraform/clusters/${DOMAIN}
govsvc/terraform plan

aws-vault exec run-sandbox – docker run -it
–env AWS_DEFAULT_REGION
–env AWS_REGION
–env AWS_ACCESS_KEY_ID
–env AWS_SECRET_ACCESS_KEY
–env AWS_SESSION_TOKEN
–env AWS_SECURITY_TOKEN
–env DOMAIN
–volume=$(pwd)/../../../:/terraform
-w /terraform/terraform/clusters/${DOMAIN}
govsvc/terraform apply

see: alphagov/gsp-teams