-
Notifications
You must be signed in to change notification settings - Fork 0
197 lines (195 loc) · 5.42 KB
/
google-bastion-dispatch.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
name: "dispatch-linux-vm-based-on-toolset-image"
on:
workflow_dispatch:
inputs:
vm-name:
description: "The name of the VM instance"
required: true
default: "bastion-vm"
vm-network:
description: "Name of a pre-existing VPC network"
required: true
vm-subnetwork:
description: "Name of a pre-existing public subnet within a VPC network"
required: true
os-image:
description: "The name of the AMI (without the timestamp or version suffix)"
required: true
default: "k8s-toolset-image"
machine-type:
description: "The VM instance type and size for the bastion"
required: true
default: "e2-standard-4"
region:
description: "The Google Cloud region where the bastion VM instance will be available"
required: true
type: choice
options:
- asia-east1
- asia-east2
- asia-northeast1
- asia-northeast2
- asia-northeast3
- asia-south1
- asia-south2
- asia-southeast1
- asia-southeast2
- australia-southeast1
- australia-southeast2
- europe-central2
- europe-north1
- europe-southwest1
- europe-west1
- europe-west2
- europe-west3
- europe-west4
- europe-west6
- europe-west8
- europe-west9
- northamerica-northeast1
- northamerica-northeast2
- southamerica-east1
- southamerica-west1
- us-central1
- us-east1
- us-east4
- us-east5
- us-south1
- us-west1
- us-west2
- us-west3
- us-west4
default: "us-west2"
zone:
description: "Availability zone (valid within region)"
required: true
type: choice
options:
- us-east1-b
- us-east1-c
- us-east1-d
- us-east4-c
- us-east4-b
- us-east4-a
- us-central1-c
- us-central1-a
- us-central1-f
- us-central1-b
- us-west1-b
- us-west1-c
- us-west1-a
- europe-west4-a
- europe-west4-b
- europe-west4-c
- europe-west1-b
- europe-west1-d
- europe-west1-c
- europe-west3-c
- europe-west3-a
- europe-west3-b
- europe-west2-c
- europe-west2-b
- europe-west2-a
- asia-east1-b
- asia-east1-a
- asia-east1-c
- asia-southeast1-b
- asia-southeast1-a
- asia-southeast1-c
- asia-northeast1-b
- asia-northeast1-c
- asia-northeast1-a
- asia-south1-c
- asia-south1-b
- asia-south1-a
- australia-southeast1-b
- australia-southeast1-c
- australia-southeast1-a
- southamerica-east1-b
- southamerica-east1-c
- southamerica-east1-a
- asia-east2-a
- asia-east2-b
- asia-east2-c
- asia-northeast2-a
- asia-northeast2-b
- asia-northeast2-c
- asia-northeast3-a
- asia-northeast3-b
- asia-northeast3-c
- asia-south2-a
- asia-south2-b
- asia-south2-c
- asia-southeast2-a
- asia-southeast2-b
- asia-southeast2-c
- australia-southeast2-a
- australia-southeast2-b
- australia-southeast2-c
- europe-central2-a
- europe-central2-b
- europe-central2-c
- europe-north1-a
- europe-north1-b
- europe-north1-c
- europe-southwest1-a
- europe-southwest1-b
- europe-southwest1-c
- europe-west6-a
- europe-west6-b
- europe-west6-c
- europe-west8-a
- europe-west8-b
- europe-west8-c
- europe-west9-a
- europe-west9-b
- europe-west9-c
- northamerica-northeast1-a
- northamerica-northeast1-b
- northamerica-northeast1-c
- northamerica-northeast2-a
- northamerica-northeast2-b
- northamerica-northeast2-c
- southamerica-west1-a
- southamerica-west1-b
- southamerica-west1-c
- us-east5-a
- us-east5-b
- us-east5-c
- us-south1-a
- us-south1-b
- us-south1-c
- us-west2-a
- us-west2-b
- us-west2-c
- us-west3-a
- us-west3-b
- us-west3-c
- us-west4-a
- us-west4-b
- us-west4-c
default: "us-west2-b"
action:
description: "Create (new) or destroy (existing)"
required: true
type: choice
options:
- create
- destroy
jobs:
manage-bastion:
uses: ./.github/workflows/google-bastion.yml
with:
vm-name: ${{ github.event.inputs.vm-name }}
vm-network: ${{ github.event.inputs.vm-network }}
vm-subnetwork: ${{ github.event.inputs.vm-subnetwork }}
os-image: ${{ github.event.inputs.os-image }}
machine-type: ${{ github.event.inputs.machine-type }}
region: ${{ github.event.inputs.region }}
zone: ${{ github.event.inputs.zone }}
action: ${{ github.event.inputs.action }}
secrets:
GOOGLE_PROJECT_ID: ${{ secrets.GOOGLE_PROJECT_ID }}
GOOGLE_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}
TF_BACKEND_GCS_BUCKET_NAME: ${{ secrets.TF_BACKEND_GCS_BUCKET_NAME }}
GOOGLE_KMS_KEYRING: ${{ secrets.GOOGLE_KMS_KEYRING }}