Created
December 17, 2020 00:00
-
-
Save Jagdeep1/ad5564cc7900ab1920ea683d5e032646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- development | |
variables: | |
- group: tf-aws-agent | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- script: | | |
sed "s/{{pat_token}}/${DEVOPS_PAT}/g; s/{{pool_name}}/${POOL_NAME}/g; s/{{agent_name}}/${AWS_AGENT_NAME}/g;" ./utils/terraform_init/aws/cfn/cft-parameters.json > ./cft-parameters.json | |
cat ./cft-parameters.json | |
displayName: 'Add pat token' | |
- task: CloudFormationCreateOrUpdateStack@1 | |
inputs: | |
awsCredentials: 'AWS_Conn' | |
regionName: 'eu-north-1' | |
stackName: 'az-tf-agent' | |
templateSource: 'file' | |
templateFile: './utils/terraform_init/aws/cfn/azdevops-agent-vm-cft.yaml' | |
templateParametersFile: './cft-parameters.json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment