-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdistelli-manifest.yml
30 lines (30 loc) · 1.09 KB
/
distelli-manifest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmosetick/tf-nano:
Build:
- echo "print working directory"
- pwd
- mkdir bin
- cd bin
- wget -q https://releases.hashicorp.com/terraform/0.6.15/terraform_0.6.15_linux_amd64.zip
- unzip -qq terraform_0.6.15_linux_amd64.zip
- cd /build
- ls -la
- pwd
- ls bin
#- export TF_VAR_count=1
- echo "what is the count?"
- echo $TF_VAR_count
- echo $TF_VAR_access_key
- echo $TF_VAR_secret_key
- echo "$PUB_KEY" >> /build/files/cmosetick-terraform.pub
- echo $DISTELLI_ACCESS_TOKEN
- echo $AGENT_SECRET
- echo "print environment"
- env
- cp cloud-config/install.yml.example cloud-config/install.yml
- cat cloud-config/install.yml
- sed -i "s/@TOKEN@/$DISTELLI_ACCESS_TOKEN/" cloud-config/install.yml
- sed -i "s/@SECRET@/$AGENT_SECRET/" cloud-config/install.yml
- cat cloud-config/install.yml
- bin/terraform remote config -backend=s3 -backend-config="bucket=cm-distelli-tf-state" -backend-config="key=tf-nano-test/terraform.tfstate" -backend-config="region=us-west-2"
- bin/terraform plan
- bin/terraform apply