github.com/uvalib/orcid-access-ws@v0.0.0-20250612130209-7d062dbabf9d/pipeline/deployspec.yml (about) 1 # 2 # deployspec.yml 3 # 4 5 version: 0.2 6 7 env: 8 variables: 9 terraform_version: 1.11.1 10 11 phases: 12 install: 13 runtime-versions: 14 golang: 1.x 15 commands: 16 - wget https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip 17 - unzip terraform_${terraform_version}_linux_amd64.zip 18 - mv terraform /usr/local/bin 19 20 pre_build: 21 commands: 22 - latest_build=$(aws --region=$AWS_REGION ssm get-parameter --name /containers/$CONTAINER_IMAGE/latest | grep "Value" | awk -F\" '{print $4}') 23 - git clone https://$GITLAB_USER:$GITLAB_TOKEN@gitlab.com/uvalib/terraform-infrastructure.git 24 25 build: 26 commands: 27 - cd $CODEBUILD_SRC_DIR/terraform-infrastructure/shared_services/orcid-access-ws/staging 28 - terraform init -no-color 29 - terraform apply -no-color -auto-approve -var container_tag=$latest_build 30 - sh $CODEBUILD_SRC_DIR/pipeline/wait_for_version.sh $TC_ENDPOINT $latest_build 300 31 32 # post_build: 33 # commands: 34 35 # 36 # end of file 37 #