-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (103 loc) · 5.42 KB
/
terraform_plan.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Plan terraform changes for base branch
on: [pull_request]
jobs:
plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Plan production
if: github.base_ref == 'production'
env:
ENV: production
AWS_ACCESS_KEY_ID: ${{ secrets.aws_key_production }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_production }}
AWS_REGION: ${{ secrets.aws_region_production }}
GFW_API_TOKEN: ${{ secrets.gfw_api_token_production }}
SLACK_DATA_UPDATES_HOOK: ${{ secrets.slack_data_updates_hook }}
RDS_PASSWORD: ${{ secrets.rds_password_production }}
RDS_PASSWORD_RO: ${{ secrets.rds_password_ro_production }}
GCS_GFW_GEE_EXPORT_KEY: ${{ secrets.gcs_gfw_gee_export_key }}
PLANET_API_KEY: ${{secrets.planet_api_key }}
JTERRY_IP: ${{ secrets.jterry_ip }}
DMANNARINO_IP: ${{ secrets.dmannarino_ip }}
SNEGUSSE_IP: ${{ secrets.snegusse_ip }}
GTEMPUS_IP: ${{ secrets.gtempus_ip }}
OFFICE_3SC_IP: ${{ secrets.office_3sc_ip }}
VPN_3SC_IP: ${{ secrets.vpn_3sc_ip }}
run: |
./scripts/infra plan -var "gfw_api_token=${GFW_API_TOKEN}" \
-var "slack_data_updates_hook=${SLACK_DATA_UPDATES_HOOK}" \
-var "rds_password=${RDS_PASSWORD}" \
-var "rds_password_ro=${RDS_PASSWORD_RO}" \
-var "gfw-gee-export_key=${GCS_GFW_GEE_EXPORT_KEY}" \
-var "planet_api_key=${PLANET_API_KEY}" \
-var "jterry_ip=${JTERRY_IP}" \
-var "dmannarino_ip=${DMANNARINO_IP}" \
-var "snegusse_ip=${SNEGUSSE_IP}" \
-var "gtempus_ip=${GTEMPUS_IP}" \
-var "office_3sc_ip=${OFFICE_3SC_IP}" \
-var "vpn_3sc_ip=${VPN_3SC_IP}"
- name: Plan staging
if: github.base_ref == 'staging'
env:
ENV: staging
AWS_ACCESS_KEY_ID: ${{ secrets.aws_key_staging }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_staging }}
AWS_REGION: ${{ secrets.aws_region_staging }}
GFW_API_TOKEN: ${{ secrets.gfw_api_token_staging }}
SLACK_DATA_UPDATES_HOOK: ${{ secrets.slack_data_updates_hook }}
RDS_PASSWORD: ${{ secrets.rds_password_staging }}
RDS_PASSWORD_RO: ${{ secrets.rds_password_ro_staging }}
GCS_GFW_GEE_EXPORT_KEY: ${{ secrets.gcs_gfw_gee_export_key }}
PLANET_API_KEY: ${{secrets.planet_api_key }}
JTERRY_IP: ${{ secrets.jterry_ip }}
DMANNARINO_IP: ${{ secrets.dmannarino_ip }}
SNEGUSSE_IP: ${{ secrets.snegusse_ip }}
GTEMPUS_IP: ${{ secrets.gtempus_ip }}
OFFICE_3SC_IP: ${{ secrets.office_3sc_ip }}
VPN_3SC_IP: ${{ secrets.vpn_3sc_ip }}
run: |
./scripts/infra plan -var "gfw_api_token=${GFW_API_TOKEN}" \
-var "slack_data_updates_hook=${SLACK_DATA_UPDATES_HOOK}" \
-var "rds_password=${RDS_PASSWORD}" \
-var "rds_password_ro=${RDS_PASSWORD_RO}" \
-var "gfw-gee-export_key=${GCS_GFW_GEE_EXPORT_KEY}" \
-var "planet_api_key=${PLANET_API_KEY}" \
-var "jterry_ip=${JTERRY_IP}" \
-var "dmannarino_ip=${DMANNARINO_IP}" \
-var "snegusse_ip=${SNEGUSSE_IP}" \
-var "gtempus_ip=${GTEMPUS_IP}" \
-var "office_3sc_ip=${OFFICE_3SC_IP}" \
-var "vpn_3sc_ip=${VPN_3SC_IP}"
- name: Plan dev
if: github.base_ref == 'dev'
env:
ENV: dev
AWS_ACCESS_KEY_ID: ${{ secrets.aws_key_dev }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_dev }}
AWS_REGION: ${{ secrets.aws_region_dev }}
GFW_API_TOKEN: ${{ secrets.gfw_api_token_dev }}
SLACK_DATA_UPDATES_HOOK: ${{ secrets.slack_data_updates_hook }}
RDS_PASSWORD: ${{ secrets.rds_password_dev }}
RDS_PASSWORD_RO: ${{ secrets.rds_password_ro_dev }}
GCS_GFW_GEE_EXPORT_KEY: ${{ secrets.gcs_gfw_gee_export_key }}
PLANET_API_KEY: ${{secrets.planet_api_key }}
JTERRY_IP: ${{ secrets.jterry_ip }}
DMANNARINO_IP: ${{ secrets.dmannarino_ip }}
SNEGUSSE_IP: ${{ secrets.snegusse_ip }}
GTEMPUS_IP: ${{ secrets.gtempus_ip }}
OFFICE_3SC_IP: ${{ secrets.office_3sc_ip }}
VPN_3SC_IP: ${{ secrets.vpn_3sc_ip }}
run: |
./scripts/infra plan -var "gfw_api_token=${GFW_API_TOKEN}" \
-var "slack_data_updates_hook=${SLACK_DATA_UPDATES_HOOK}" \
-var "rds_password=${RDS_PASSWORD}" \
-var "rds_password_ro=${RDS_PASSWORD_RO}" \
-var "gfw-gee-export_key=${GCS_GFW_GEE_EXPORT_KEY}" \
-var "planet_api_key=${PLANET_API_KEY}" \
-var "jterry_ip=${JTERRY_IP}" \
-var "dmannarino_ip=${DMANNARINO_IP}" \
-var "snegusse_ip=${SNEGUSSE_IP}" \
-var "gtempus_ip=${GTEMPUS_IP}" \
-var "office_3sc_ip=${OFFICE_3SC_IP}" \
-var "vpn_3sc_ip=${VPN_3SC_IP}"