-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwercker.yml
45 lines (44 loc) · 1.57 KB
/
wercker.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
box: ubuntu
build:
steps:
- script:
name: create terraform directory and export PATH
code: |
mkdir -p $HOME/terraform
export PATH=$PATH:$HOME/terraform
- script:
name: install wget / curl / unzip
code: |
apt-get update
apt-get -y -qq install wget unzip curl
- script:
name: download terraform
code: |
cd $HOME/terraform
wget https://dl.bintray.com/mitchellh/terraform/terraform_0.6.1_linux_amd64.zip
unzip terraform_0.6.1_linux_amd64.zip
rm terraform_0.6.1_linux_amd64.zip
- script:
name: run terraform plan
code: |
terraform plan \
-refresh=false \
-var 'access_key=AK123456789123456789' \
-var 'secret_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-var 'ssh_key_name=your_ssh_key_name' \
-var 'subnet=subnet-12345678' \
-var 'securiy_group=sg-12345678' \
-var 'iam_profile_name=your_iam_role_name' \
-var 's3_bucket_name=your-s3-bucket-name' \
-var 'datadog_api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
#- script:
# name: run terraform apply
# code: |
# terraform apply -var "access_key=$AWS_ACCESS_KEY_ID" -var "secret_key=$AWS_SECRET_ACCESS_KEY"
after-steps:
- sherzberg/slack-notify:
subdomain: $SLACK_TEAM
token: $SLACK_TOKEN
channel: $SLACK_CHANNEL
username: wercker
icon_url: https://avatars3.githubusercontent.com/u/1695193?s=140