terraform-cdk-serverless-github-actions-runner-controller 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +1706 -0
- package/API.md +113 -0
- package/LICENSE +19 -0
- package/README.md +4 -0
- package/lib/.gen/providers/azapi/data-azapi-resource-action/index.d.ts +344 -0
- package/lib/.gen/providers/azapi/data-azapi-resource-action/index.js +583 -0
- package/lib/.gen/providers/azapi/provider/index.d.ts +425 -0
- package/lib/.gen/providers/azapi/provider/index.js +802 -0
- package/lib/.gen/providers/azapi/resource/index.d.ts +639 -0
- package/lib/.gen/providers/azapi/resource/index.js +1067 -0
- package/lib/__tests__/index-test.d.ts +1 -0
- package/lib/__tests__/index-test.js +14 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +18 -0
- package/lib/lib/azure.d.ts +4 -0
- package/lib/lib/azure.js +478 -0
- package/lib/lib/variables.d.ts +7 -0
- package/lib/lib/variables.js +20 -0
- package/lib/tfModules.d.ts +1 -0
- package/lib/tfModules.js +18 -0
- package/modules/azure-container-apps/README.md +74 -0
- package/modules/azure-container-apps/cdk.tf.json +635 -0
- package/package.json +146 -0
- package/scripts/copy-modules.sh +48 -0
@@ -0,0 +1,635 @@
|
|
1
|
+
{
|
2
|
+
"//": {
|
3
|
+
"metadata": {
|
4
|
+
"backend": "local",
|
5
|
+
"stackName": "azure-container-apps",
|
6
|
+
"version": "0.20.0"
|
7
|
+
},
|
8
|
+
"outputs": {
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"data": {
|
12
|
+
"azapi_resource_action": {
|
13
|
+
"aca_storageAccessKeys_4F266A39": {
|
14
|
+
"//": {
|
15
|
+
"metadata": {
|
16
|
+
"path": "azure-container-apps/aca/storageAccessKeys",
|
17
|
+
"uniqueId": "aca_storageAccessKeys_4F266A39"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"action": "listKeys",
|
21
|
+
"depends_on": [
|
22
|
+
"azapi_resource.aca_storageAccount_C1F07B26"
|
23
|
+
],
|
24
|
+
"resource_id": "${azapi_resource.aca_storageAccount_C1F07B26.id}",
|
25
|
+
"response_export_values": {
|
26
|
+
"0": "*"
|
27
|
+
},
|
28
|
+
"type": "Microsoft.Storage/storageAccounts@2023-01-01"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"azurerm_subscription": {
|
32
|
+
"aca_sub_C75A43F0": {
|
33
|
+
"//": {
|
34
|
+
"metadata": {
|
35
|
+
"path": "azure-container-apps/aca/sub",
|
36
|
+
"uniqueId": "aca_sub_C75A43F0"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"resource": {
|
43
|
+
"azapi_resource": {
|
44
|
+
"aca_acaenv_BB928F0D": {
|
45
|
+
"//": {
|
46
|
+
"metadata": {
|
47
|
+
"path": "azure-container-apps/aca/acaenv",
|
48
|
+
"uniqueId": "aca_acaenv_BB928F0D"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"body": {
|
52
|
+
"properties": {
|
53
|
+
"appLogsConfiguration": {
|
54
|
+
"destination": "log-analytics",
|
55
|
+
"logAnalyticsConfiguration": {
|
56
|
+
"customerId": "${azurerm_log_analytics_workspace.aca_log_B150D83C.workspace_id}",
|
57
|
+
"sharedKey": "${azurerm_log_analytics_workspace.aca_log_B150D83C.primary_shared_key}"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"infrastructureResourceGroup": "managed-aca-rg",
|
61
|
+
"workloadProfiles": [
|
62
|
+
{
|
63
|
+
"name": "Consumption",
|
64
|
+
"workloadProfileType": "Consumption"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"lifecycle": {
|
70
|
+
"ignore_changes": [
|
71
|
+
"tags"
|
72
|
+
]
|
73
|
+
},
|
74
|
+
"location": "${var.aca_location_486B7D73}",
|
75
|
+
"name": "gha-runner-environment",
|
76
|
+
"parent_id": "${azurerm_resource_group.aca_rg_AD6EB8ED.id}",
|
77
|
+
"type": "Microsoft.App/managedEnvironments@2024-03-01"
|
78
|
+
},
|
79
|
+
"aca_autoscalerCache_3C1251ED": {
|
80
|
+
"//": {
|
81
|
+
"metadata": {
|
82
|
+
"path": "azure-container-apps/aca/autoscalerCache",
|
83
|
+
"uniqueId": "aca_autoscalerCache_3C1251ED"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"body": {
|
87
|
+
"properties": {
|
88
|
+
"sourceRepository": "ghcr.io/hi-fi/gha-runners-on-managed-env",
|
89
|
+
"targetRepository": "autoscaler"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"name": "autoscaler-cache",
|
93
|
+
"parent_id": "${azurerm_container_registry.aca_acr_DEECF884.id}",
|
94
|
+
"type": "Microsoft.ContainerRegistry/registries/cacheRules@2023-01-01-preview"
|
95
|
+
},
|
96
|
+
"aca_externalsShare_D334CAD4": {
|
97
|
+
"//": {
|
98
|
+
"metadata": {
|
99
|
+
"path": "azure-container-apps/aca/externalsShare",
|
100
|
+
"uniqueId": "aca_externalsShare_D334CAD4"
|
101
|
+
}
|
102
|
+
},
|
103
|
+
"body": {
|
104
|
+
"properties": {
|
105
|
+
"enabledProtocols": "SMB"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"name": "ghaexternalsshare",
|
109
|
+
"parent_id": "${azapi_resource.aca_storageAccount_C1F07B26.id}/fileServices/default",
|
110
|
+
"type": "Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01"
|
111
|
+
},
|
112
|
+
"aca_ghaRunnerJob_816ABB0D": {
|
113
|
+
"//": {
|
114
|
+
"metadata": {
|
115
|
+
"path": "azure-container-apps/aca/ghaRunnerJob",
|
116
|
+
"uniqueId": "aca_ghaRunnerJob_816ABB0D"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"body": {
|
120
|
+
"properties": {
|
121
|
+
"configuration": {
|
122
|
+
"manualTriggerConfig": {
|
123
|
+
"parallelism": 1,
|
124
|
+
"replicaCompletionCount": 1
|
125
|
+
},
|
126
|
+
"registries": [
|
127
|
+
{
|
128
|
+
"identity": "${azurerm_user_assigned_identity.aca_identity_9571D28D.id}",
|
129
|
+
"server": "${azurerm_container_registry.aca_acr_DEECF884.login_server}"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"replicaTimeout": 1200,
|
133
|
+
"triggerType": "Manual"
|
134
|
+
},
|
135
|
+
"environmentId": "${azapi_resource.aca_acaenv_BB928F0D.id}",
|
136
|
+
"template": {
|
137
|
+
"containers": [
|
138
|
+
{
|
139
|
+
"command": [
|
140
|
+
"/bin/sh",
|
141
|
+
"-c",
|
142
|
+
"export EXECID=$(cat /proc/sys/kernel/random/uuid) && mkdir -p /tmp/_work/$EXECID && ln -s /tmp/_work/$EXECID _work && /home/runner/run.sh ; rm -r /tmp/_work/$EXECID"
|
143
|
+
],
|
144
|
+
"env": [
|
145
|
+
{
|
146
|
+
"name": "APPSETTING_WEBSITE_SITE_NAME",
|
147
|
+
"value": "identity-workaround"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"name": "AZURE_CLIENT_ID",
|
151
|
+
"value": "${azurerm_user_assigned_identity.aca_identity_9571D28D.client_id}"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"name": "RG_NAME",
|
155
|
+
"value": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"name": "LOG_ID",
|
159
|
+
"value": "${azurerm_log_analytics_workspace.aca_log_B150D83C.workspace_id}"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"name": "STORAGE_NAME",
|
163
|
+
"value": "${azurerm_container_app_environment_storage.aca_acaenvstorage_23C615A5.name}"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"name": "EXTERNAL_STORAGE_NAME",
|
167
|
+
"value": "${azurerm_container_app_environment_storage.aca_acaexternalstorage_B8141EC0.name}"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"name": "SUBSCRIPTION_ID",
|
171
|
+
"value": "${data.azurerm_subscription.aca_sub_C75A43F0.subscription_id}"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"name": "ACA_ENVIRONMENT_ID",
|
175
|
+
"value": "${azapi_resource.aca_acaenv_BB928F0D.id}"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"image": "${azurerm_container_registry.aca_acr_DEECF884.login_server}/root-actions-runner:latest",
|
179
|
+
"name": "main",
|
180
|
+
"resources": {
|
181
|
+
"cpu": 1,
|
182
|
+
"memory": "2Gi"
|
183
|
+
},
|
184
|
+
"volumeMounts": [
|
185
|
+
{
|
186
|
+
"mountPath": "/tmp/_work",
|
187
|
+
"volumeName": "work"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"mountPath": "/tmp/externals",
|
191
|
+
"volumeName": "externals"
|
192
|
+
}
|
193
|
+
]
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"volumes": [
|
197
|
+
{
|
198
|
+
"mountOptions": "mfsymlinks",
|
199
|
+
"name": "work",
|
200
|
+
"storageName": "${azurerm_container_app_environment_storage.aca_acaenvstorage_23C615A5.name}",
|
201
|
+
"storageType": "AzureFile"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"mountOptions": "mfsymlinks",
|
205
|
+
"name": "externals",
|
206
|
+
"storageName": "${azurerm_container_app_environment_storage.aca_acaexternalstorage_B8141EC0.name}",
|
207
|
+
"storageType": "AzureFile"
|
208
|
+
}
|
209
|
+
]
|
210
|
+
}
|
211
|
+
}
|
212
|
+
},
|
213
|
+
"depends_on": [
|
214
|
+
"azapi_resource.aca_runnerCache_2C48ECD2"
|
215
|
+
],
|
216
|
+
"identity": [
|
217
|
+
{
|
218
|
+
"identity_ids": [
|
219
|
+
"${azurerm_user_assigned_identity.aca_identity_9571D28D.id}"
|
220
|
+
],
|
221
|
+
"type": "UserAssigned"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"lifecycle": {
|
225
|
+
"ignore_changes": [
|
226
|
+
"tags"
|
227
|
+
]
|
228
|
+
},
|
229
|
+
"location": "${var.aca_location_486B7D73}",
|
230
|
+
"name": "gha-runner-job-01",
|
231
|
+
"parent_id": "${azurerm_resource_group.aca_rg_AD6EB8ED.id}",
|
232
|
+
"type": "Microsoft.App/jobs@2024-02-02-preview"
|
233
|
+
},
|
234
|
+
"aca_runnerCache_2C48ECD2": {
|
235
|
+
"//": {
|
236
|
+
"metadata": {
|
237
|
+
"path": "azure-container-apps/aca/runnerCache",
|
238
|
+
"uniqueId": "aca_runnerCache_2C48ECD2"
|
239
|
+
}
|
240
|
+
},
|
241
|
+
"body": {
|
242
|
+
"properties": {
|
243
|
+
"sourceRepository": "ghcr.io/hi-fi/root-actions-runner",
|
244
|
+
"targetRepository": "root-actions-runner"
|
245
|
+
}
|
246
|
+
},
|
247
|
+
"name": "root-runner-cache",
|
248
|
+
"parent_id": "${azurerm_container_registry.aca_acr_DEECF884.id}",
|
249
|
+
"type": "Microsoft.ContainerRegistry/registries/cacheRules@2023-01-01-preview"
|
250
|
+
},
|
251
|
+
"aca_storageAccount_C1F07B26": {
|
252
|
+
"//": {
|
253
|
+
"metadata": {
|
254
|
+
"path": "azure-container-apps/aca/storageAccount",
|
255
|
+
"uniqueId": "aca_storageAccount_C1F07B26"
|
256
|
+
}
|
257
|
+
},
|
258
|
+
"body": {
|
259
|
+
"kind": "StorageV2",
|
260
|
+
"properties": {
|
261
|
+
"largeFileSharesState": "Enabled"
|
262
|
+
},
|
263
|
+
"sku": {
|
264
|
+
"name": "Standard_LRS"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"lifecycle": {
|
268
|
+
"ignore_changes": [
|
269
|
+
"tags"
|
270
|
+
]
|
271
|
+
},
|
272
|
+
"location": "${var.aca_location_486B7D73}",
|
273
|
+
"name": "ghastorageaccount${random_string.aca_randomSuffix_B2CE1226.result}",
|
274
|
+
"parent_id": "${azurerm_resource_group.aca_rg_AD6EB8ED.id}",
|
275
|
+
"response_export_values": {
|
276
|
+
},
|
277
|
+
"type": "Microsoft.Storage/storageAccounts@2023-01-01"
|
278
|
+
},
|
279
|
+
"aca_storageShare_5702AE2C": {
|
280
|
+
"//": {
|
281
|
+
"metadata": {
|
282
|
+
"path": "azure-container-apps/aca/storageShare",
|
283
|
+
"uniqueId": "aca_storageShare_5702AE2C"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
"body": {
|
287
|
+
"properties": {
|
288
|
+
"enabledProtocols": "SMB"
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"name": "ghaexampleshare",
|
292
|
+
"parent_id": "${azapi_resource.aca_storageAccount_C1F07B26.id}/fileServices/default",
|
293
|
+
"type": "Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01"
|
294
|
+
}
|
295
|
+
},
|
296
|
+
"azurerm_container_app": {
|
297
|
+
"aca_autoscalerApp_63FADD45": {
|
298
|
+
"//": {
|
299
|
+
"metadata": {
|
300
|
+
"path": "azure-container-apps/aca/autoscalerApp",
|
301
|
+
"uniqueId": "aca_autoscalerApp_63FADD45"
|
302
|
+
}
|
303
|
+
},
|
304
|
+
"container_app_environment_id": "${azapi_resource.aca_acaenv_BB928F0D.id}",
|
305
|
+
"depends_on": [
|
306
|
+
"azapi_resource.aca_autoscalerCache_3C1251ED"
|
307
|
+
],
|
308
|
+
"identity": {
|
309
|
+
"identity_ids": [
|
310
|
+
"${azurerm_user_assigned_identity.aca_identity_9571D28D.id}"
|
311
|
+
],
|
312
|
+
"type": "SystemAssigned, UserAssigned"
|
313
|
+
},
|
314
|
+
"lifecycle": {
|
315
|
+
"ignore_changes": [
|
316
|
+
"tags",
|
317
|
+
"workload_profile_name"
|
318
|
+
]
|
319
|
+
},
|
320
|
+
"name": "autoscaler-app-01",
|
321
|
+
"registry": [
|
322
|
+
{
|
323
|
+
"identity": "${azurerm_user_assigned_identity.aca_identity_9571D28D.id}",
|
324
|
+
"server": "${azurerm_container_registry.aca_acr_DEECF884.login_server}"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"resource_group_name": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}",
|
328
|
+
"revision_mode": "Single",
|
329
|
+
"secret": [
|
330
|
+
{
|
331
|
+
"name": "pat",
|
332
|
+
"value": "${var.aca_PAT_B54A3B25}"
|
333
|
+
}
|
334
|
+
],
|
335
|
+
"template": {
|
336
|
+
"container": [
|
337
|
+
{
|
338
|
+
"cpu": 0.25,
|
339
|
+
"env": [
|
340
|
+
{
|
341
|
+
"name": "PAT",
|
342
|
+
"secret_name": "pat"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"name": "GITHUB_CONFIG_URL",
|
346
|
+
"value": "${var.aca_github_config_url_7230B339}"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"name": "AZURE_TENANT_ID",
|
350
|
+
"value": "${data.azurerm_subscription.aca_sub_C75A43F0.tenant_id}"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"name": "SUBSCRIPTION_ID",
|
354
|
+
"value": "${data.azurerm_subscription.aca_sub_C75A43F0.subscription_id}"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"name": "RESOURCE_GROUP_NAME",
|
358
|
+
"value": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"name": "JOB_NAME",
|
362
|
+
"value": "${azapi_resource.aca_ghaRunnerJob_816ABB0D.name}"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"name": "SCALE_SET_NAME",
|
366
|
+
"value": "aca-runner-set"
|
367
|
+
}
|
368
|
+
],
|
369
|
+
"image": "${azurerm_container_registry.aca_acr_DEECF884.login_server}/autoscaler:test",
|
370
|
+
"memory": "0.5Gi",
|
371
|
+
"name": "autoscaler"
|
372
|
+
}
|
373
|
+
]
|
374
|
+
}
|
375
|
+
}
|
376
|
+
},
|
377
|
+
"azurerm_container_app_environment_storage": {
|
378
|
+
"aca_acaenvstorage_23C615A5": {
|
379
|
+
"//": {
|
380
|
+
"metadata": {
|
381
|
+
"path": "azure-container-apps/aca/acaenvstorage",
|
382
|
+
"uniqueId": "aca_acaenvstorage_23C615A5"
|
383
|
+
}
|
384
|
+
},
|
385
|
+
"access_key": "${element(element(data.azapi_resource_action.aca_storageAccessKeys_4F266A39.output[\"0\"], 0), 0).value}",
|
386
|
+
"access_mode": "ReadWrite",
|
387
|
+
"account_name": "${azapi_resource.aca_storageAccount_C1F07B26.name}",
|
388
|
+
"container_app_environment_id": "${azapi_resource.aca_acaenv_BB928F0D.id}",
|
389
|
+
"depends_on": [
|
390
|
+
"azapi_resource.aca_storageShare_5702AE2C"
|
391
|
+
],
|
392
|
+
"name": "gharunnerjobstorage",
|
393
|
+
"share_name": "${azapi_resource.aca_storageShare_5702AE2C.name}"
|
394
|
+
},
|
395
|
+
"aca_acaexternalstorage_B8141EC0": {
|
396
|
+
"//": {
|
397
|
+
"metadata": {
|
398
|
+
"path": "azure-container-apps/aca/acaexternalstorage",
|
399
|
+
"uniqueId": "aca_acaexternalstorage_B8141EC0"
|
400
|
+
}
|
401
|
+
},
|
402
|
+
"access_key": "${element(element(data.azapi_resource_action.aca_storageAccessKeys_4F266A39.output[\"0\"], 0), 0).value}",
|
403
|
+
"access_mode": "ReadWrite",
|
404
|
+
"account_name": "${azapi_resource.aca_storageAccount_C1F07B26.name}",
|
405
|
+
"container_app_environment_id": "${azapi_resource.aca_acaenv_BB928F0D.id}",
|
406
|
+
"depends_on": [
|
407
|
+
"azapi_resource.aca_externalsShare_D334CAD4"
|
408
|
+
],
|
409
|
+
"name": "gharunnerexternalstorage",
|
410
|
+
"share_name": "${azapi_resource.aca_externalsShare_D334CAD4.name}"
|
411
|
+
}
|
412
|
+
},
|
413
|
+
"azurerm_container_registry": {
|
414
|
+
"aca_acr_DEECF884": {
|
415
|
+
"//": {
|
416
|
+
"metadata": {
|
417
|
+
"path": "azure-container-apps/aca/acr",
|
418
|
+
"uniqueId": "aca_acr_DEECF884"
|
419
|
+
}
|
420
|
+
},
|
421
|
+
"lifecycle": {
|
422
|
+
"ignore_changes": [
|
423
|
+
"tags"
|
424
|
+
]
|
425
|
+
},
|
426
|
+
"location": "${var.aca_location_486B7D73}",
|
427
|
+
"name": "runneracr${random_string.aca_randomSuffix_B2CE1226.result}",
|
428
|
+
"resource_group_name": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}",
|
429
|
+
"sku": "Basic"
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"azurerm_log_analytics_workspace": {
|
433
|
+
"aca_log_B150D83C": {
|
434
|
+
"//": {
|
435
|
+
"metadata": {
|
436
|
+
"path": "azure-container-apps/aca/log",
|
437
|
+
"uniqueId": "aca_log_B150D83C"
|
438
|
+
}
|
439
|
+
},
|
440
|
+
"lifecycle": {
|
441
|
+
"ignore_changes": [
|
442
|
+
"tags"
|
443
|
+
]
|
444
|
+
},
|
445
|
+
"location": "${var.aca_location_486B7D73}",
|
446
|
+
"name": "gha-example-logs",
|
447
|
+
"resource_group_name": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}"
|
448
|
+
}
|
449
|
+
},
|
450
|
+
"azurerm_resource_group": {
|
451
|
+
"aca_rg_AD6EB8ED": {
|
452
|
+
"//": {
|
453
|
+
"metadata": {
|
454
|
+
"path": "azure-container-apps/aca/rg",
|
455
|
+
"uniqueId": "aca_rg_AD6EB8ED"
|
456
|
+
}
|
457
|
+
},
|
458
|
+
"lifecycle": {
|
459
|
+
"ignore_changes": [
|
460
|
+
"tags"
|
461
|
+
]
|
462
|
+
},
|
463
|
+
"location": "${var.aca_location_486B7D73}",
|
464
|
+
"name": "gha-runner-rg"
|
465
|
+
}
|
466
|
+
},
|
467
|
+
"azurerm_role_assignment": {
|
468
|
+
"aca_actionContainerStartRoleAssignment_941E620A": {
|
469
|
+
"//": {
|
470
|
+
"metadata": {
|
471
|
+
"path": "azure-container-apps/aca/actionContainerStartRoleAssignment",
|
472
|
+
"uniqueId": "aca_actionContainerStartRoleAssignment_941E620A"
|
473
|
+
}
|
474
|
+
},
|
475
|
+
"principal_id": "${azurerm_user_assigned_identity.aca_identity_9571D28D.principal_id}",
|
476
|
+
"role_definition_id": "${azurerm_role_definition.aca_jobCreationRole_9EFE12E7.role_definition_resource_id}",
|
477
|
+
"scope": "${azurerm_resource_group.aca_rg_AD6EB8ED.id}"
|
478
|
+
},
|
479
|
+
"aca_imagePushRoleAssignment_8F2241FD": {
|
480
|
+
"//": {
|
481
|
+
"metadata": {
|
482
|
+
"path": "azure-container-apps/aca/imagePushRoleAssignment",
|
483
|
+
"uniqueId": "aca_imagePushRoleAssignment_8F2241FD"
|
484
|
+
}
|
485
|
+
},
|
486
|
+
"principal_id": "${azurerm_user_assigned_identity.aca_identity_9571D28D.principal_id}",
|
487
|
+
"role_definition_name": "AcrPush",
|
488
|
+
"scope": "${azurerm_container_registry.aca_acr_DEECF884.id}"
|
489
|
+
},
|
490
|
+
"aca_jobLogReadAssignment_E0C92A22": {
|
491
|
+
"//": {
|
492
|
+
"metadata": {
|
493
|
+
"path": "azure-container-apps/aca/jobLogReadAssignment",
|
494
|
+
"uniqueId": "aca_jobLogReadAssignment_E0C92A22"
|
495
|
+
}
|
496
|
+
},
|
497
|
+
"principal_id": "${azurerm_user_assigned_identity.aca_identity_9571D28D.principal_id}",
|
498
|
+
"role_definition_name": "Log Analytics Reader",
|
499
|
+
"scope": "${azurerm_log_analytics_workspace.aca_log_B150D83C.id}"
|
500
|
+
},
|
501
|
+
"aca_roleAssignment_A6BA6095": {
|
502
|
+
"//": {
|
503
|
+
"metadata": {
|
504
|
+
"path": "azure-container-apps/aca/roleAssignment",
|
505
|
+
"uniqueId": "aca_roleAssignment_A6BA6095"
|
506
|
+
}
|
507
|
+
},
|
508
|
+
"principal_id": "${azurerm_user_assigned_identity.aca_identity_9571D28D.principal_id}",
|
509
|
+
"role_definition_name": "AcrPull",
|
510
|
+
"scope": "${azurerm_container_registry.aca_acr_DEECF884.id}"
|
511
|
+
},
|
512
|
+
"aca_scaleJobRoleAssignment_5738140A": {
|
513
|
+
"//": {
|
514
|
+
"metadata": {
|
515
|
+
"path": "azure-container-apps/aca/scaleJobRoleAssignment",
|
516
|
+
"uniqueId": "aca_scaleJobRoleAssignment_5738140A"
|
517
|
+
}
|
518
|
+
},
|
519
|
+
"principal_id": "${azurerm_container_app.aca_autoscalerApp_63FADD45.identity[0].principal_id}",
|
520
|
+
"role_definition_id": "${azurerm_role_definition.aca_jobRole_21145D6F.role_definition_resource_id}",
|
521
|
+
"scope": "${azapi_resource.aca_ghaRunnerJob_816ABB0D.id}"
|
522
|
+
}
|
523
|
+
},
|
524
|
+
"azurerm_role_definition": {
|
525
|
+
"aca_jobCreationRole_9EFE12E7": {
|
526
|
+
"//": {
|
527
|
+
"metadata": {
|
528
|
+
"path": "azure-container-apps/aca/jobCreationRole",
|
529
|
+
"uniqueId": "aca_jobCreationRole_9EFE12E7"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"name": "gha-example-revision-create-role-${random_string.aca_randomSuffix_B2CE1226.result}",
|
533
|
+
"permissions": [
|
534
|
+
{
|
535
|
+
"actions": [
|
536
|
+
"microsoft.app/jobs/start/action",
|
537
|
+
"microsoft.app/jobs/stop/action",
|
538
|
+
"microsoft.app/jobs/read",
|
539
|
+
"microsoft.app/jobs/write",
|
540
|
+
"microsoft.app/jobs/executions/read",
|
541
|
+
"microsoft.app/managedEnvironments/join/action",
|
542
|
+
"microsoft.app/jobs/delete"
|
543
|
+
]
|
544
|
+
}
|
545
|
+
],
|
546
|
+
"scope": "${data.azurerm_subscription.aca_sub_C75A43F0.id}"
|
547
|
+
},
|
548
|
+
"aca_jobRole_21145D6F": {
|
549
|
+
"//": {
|
550
|
+
"metadata": {
|
551
|
+
"path": "azure-container-apps/aca/jobRole",
|
552
|
+
"uniqueId": "aca_jobRole_21145D6F"
|
553
|
+
}
|
554
|
+
},
|
555
|
+
"name": "gha-example-revision-start-role-${random_string.aca_randomSuffix_B2CE1226.result}",
|
556
|
+
"permissions": [
|
557
|
+
{
|
558
|
+
"actions": [
|
559
|
+
"microsoft.app/jobs/start/action",
|
560
|
+
"microsoft.app/jobs/stop/action",
|
561
|
+
"microsoft.app/jobs/read",
|
562
|
+
"microsoft.app/jobs/executions/read"
|
563
|
+
]
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"scope": "${data.azurerm_subscription.aca_sub_C75A43F0.id}"
|
567
|
+
}
|
568
|
+
},
|
569
|
+
"azurerm_user_assigned_identity": {
|
570
|
+
"aca_identity_9571D28D": {
|
571
|
+
"//": {
|
572
|
+
"metadata": {
|
573
|
+
"path": "azure-container-apps/aca/identity",
|
574
|
+
"uniqueId": "aca_identity_9571D28D"
|
575
|
+
}
|
576
|
+
},
|
577
|
+
"lifecycle": {
|
578
|
+
"ignore_changes": [
|
579
|
+
"tags"
|
580
|
+
]
|
581
|
+
},
|
582
|
+
"location": "${var.aca_location_486B7D73}",
|
583
|
+
"name": "aca-acr-access",
|
584
|
+
"resource_group_name": "${azurerm_resource_group.aca_rg_AD6EB8ED.name}"
|
585
|
+
}
|
586
|
+
},
|
587
|
+
"random_string": {
|
588
|
+
"aca_randomSuffix_B2CE1226": {
|
589
|
+
"//": {
|
590
|
+
"metadata": {
|
591
|
+
"path": "azure-container-apps/aca/randomSuffix",
|
592
|
+
"uniqueId": "aca_randomSuffix_B2CE1226"
|
593
|
+
}
|
594
|
+
},
|
595
|
+
"length": 6,
|
596
|
+
"special": false,
|
597
|
+
"upper": false
|
598
|
+
}
|
599
|
+
}
|
600
|
+
},
|
601
|
+
"terraform": {
|
602
|
+
"required_providers": {
|
603
|
+
"azapi": {
|
604
|
+
"source": "azure/azapi",
|
605
|
+
"version": "2.3.0"
|
606
|
+
},
|
607
|
+
"azurerm": {
|
608
|
+
"source": "azurerm",
|
609
|
+
"version": "4.27.0"
|
610
|
+
},
|
611
|
+
"random": {
|
612
|
+
"source": "hashicorp/random",
|
613
|
+
"version": "3.7.2"
|
614
|
+
}
|
615
|
+
}
|
616
|
+
},
|
617
|
+
"variable": {
|
618
|
+
"aca_PAT_B54A3B25": {
|
619
|
+
"description": "Github PAT with Actions:Read and Admin:Read+Write scopes",
|
620
|
+
"nullable": false,
|
621
|
+
"sensitive": true
|
622
|
+
},
|
623
|
+
"aca_github_config_url_7230B339": {
|
624
|
+
"description": "Github URL where runners should register to. Format https://<GitHub host>/<your_enterprise/org/repo>",
|
625
|
+
"nullable": false
|
626
|
+
},
|
627
|
+
"aca_location_486B7D73": {
|
628
|
+
"default": "westeurope",
|
629
|
+
"description": "Location where to provision resources to",
|
630
|
+
"nullable": false,
|
631
|
+
"sensitive": false,
|
632
|
+
"type": "string"
|
633
|
+
}
|
634
|
+
}
|
635
|
+
}
|