@microsoft/terraform-cdk-constructs 0.0.3-pre.10 → 0.0.3-pre.12
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 +858 -681
- package/API.md +499 -405
- package/README.md +4 -5
- package/docs/testing.md +39 -137
- package/lib/azure-actiongroup/lib/actiongroup.d.ts +1 -1
- package/lib/azure-actiongroup/lib/actiongroup.js +4 -4
- package/lib/azure-actiongroup/model/action-group-props.d.ts +3 -2
- package/lib/azure-actiongroup/model/action-group-props.js +1 -1
- package/lib/azure-actiongroup/test/AzureActionGroup.integ.js +66 -0
- package/lib/azure-actiongroup/test/AzureActionGroup.spec.js +5 -33
- package/lib/azure-applicationgateway/lib/gateway.d.ts +5 -3
- package/lib/azure-applicationgateway/lib/gateway.js +14 -7
- package/lib/azure-applicationgateway/test/AzureApplicationGateway.integ.d.ts +1 -0
- package/lib/azure-applicationgateway/test/AzureApplicationGateway.integ.js +272 -0
- package/lib/azure-applicationgateway/test/AzureApplicationGateway.spec.js +3 -35
- package/lib/azure-applicationinsights/lib/appinsights.d.ts +4 -3
- package/lib/azure-applicationinsights/lib/appinsights.js +6 -6
- package/lib/azure-applicationinsights/test/AzureAppInsights.integ.d.ts +1 -0
- package/lib/azure-applicationinsights/test/AzureAppInsights.integ.js +101 -0
- package/lib/azure-applicationinsights/test/AzureAppInsights.spec.js +4 -27
- package/lib/azure-containerregistry/lib/registry.d.ts +4 -3
- package/lib/azure-containerregistry/lib/registry.js +5 -5
- package/lib/azure-containerregistry/test/AzureContainerRegistry.integ.d.ts +1 -0
- package/lib/azure-containerregistry/test/AzureContainerRegistry.integ.js +68 -0
- package/lib/azure-containerregistry/test/AzureContainerRegistry.spec.js +4 -23
- package/lib/azure-datalake/lib/datalake.d.ts +1 -0
- package/lib/azure-datalake/lib/datalake.js +2 -1
- package/lib/azure-datalake/test/AzureDatalake.spec.d.ts +1 -0
- package/lib/azure-datalake/test/AzureDatalake.spec.js +32 -0
- package/lib/azure-datalake/test/AzureStorageAccount.integ.d.ts +1 -0
- package/lib/azure-datalake/test/AzureStorageAccount.integ.js +60 -0
- package/lib/azure-eventhub/lib/authorization.js +1 -1
- package/lib/azure-eventhub/lib/consumer.js +1 -1
- package/lib/azure-eventhub/lib/{cluster.d.ts → eventhubcluster.d.ts} +11 -7
- package/lib/azure-eventhub/lib/eventhubcluster.js +64 -0
- package/lib/azure-eventhub/lib/index.d.ts +1 -1
- package/lib/azure-eventhub/lib/index.js +2 -2
- package/lib/azure-eventhub/lib/instance.d.ts +1 -0
- package/lib/azure-eventhub/lib/instance.js +5 -4
- package/lib/azure-eventhub/lib/kusto-connection.js +1 -1
- package/lib/azure-eventhub/lib/namespace.d.ts +7 -6
- package/lib/azure-eventhub/lib/namespace.js +24 -26
- package/lib/azure-eventhub/test/AzureEventhub.integ.d.ts +1 -0
- package/lib/azure-eventhub/test/AzureEventhub.integ.js +72 -0
- package/lib/azure-eventhub/test/AzureEventhub.spec.js +4 -27
- package/lib/azure-functionapp/lib/functionapplinux.js +1 -1
- package/lib/azure-functionapp/test/AzureLinuxFunctionApp.integ.d.ts +1 -0
- package/lib/azure-functionapp/test/AzureLinuxFunctionApp.integ.js +117 -0
- package/lib/azure-functionapp/test/AzureLinuxFunctionApp.spec.js +4 -21
- package/lib/azure-keyvault/lib/certificate.js +2 -2
- package/lib/azure-keyvault/lib/key.js +1 -1
- package/lib/azure-keyvault/lib/policy.js +1 -1
- package/lib/azure-keyvault/lib/secret.js +1 -1
- package/lib/azure-keyvault/lib/vault.d.ts +3 -2
- package/lib/azure-keyvault/lib/vault.js +4 -4
- package/lib/azure-keyvault/test/AzureKeyVault.integ.d.ts +1 -0
- package/lib/azure-keyvault/test/AzureKeyVault.integ.js +119 -0
- package/lib/azure-keyvault/test/AzureKeyVault.spec.js +4 -35
- package/lib/azure-kubernetes/lib/cluster.js +1 -1
- package/lib/azure-kubernetes/test/AzureKubernetesCluster.integ.d.ts +1 -0
- package/lib/azure-kubernetes/test/AzureKubernetesCluster.integ.js +75 -0
- package/lib/azure-kubernetes/test/AzureKubernetesCluster.spec.js +4 -21
- package/lib/azure-kusto/lib/cluster.d.ts +9 -5
- package/lib/azure-kusto/lib/cluster.js +66 -42
- package/lib/azure-kusto/lib/compute-specification.js +1 -1
- package/lib/azure-kusto/lib/database.d.ts +7 -8
- package/lib/azure-kusto/lib/database.js +23 -25
- package/lib/azure-kusto/test/AzureKusto.integ.d.ts +1 -0
- package/lib/azure-kusto/test/AzureKusto.integ.js +74 -0
- package/lib/azure-kusto/test/AzureKusto.spec.js +3 -22
- package/lib/azure-loganalytics/lib/workspace.d.ts +6 -3
- package/lib/azure-loganalytics/lib/workspace.js +7 -6
- package/lib/azure-loganalytics/test/AzureLogAnalytics.integ.d.ts +1 -0
- package/lib/azure-loganalytics/test/AzureLogAnalytics.integ.js +117 -0
- package/lib/azure-loganalytics/test/AzureLogAnalytics.spec.js +4 -23
- package/lib/azure-metricalert/lib/metric-alert.js +1 -1
- package/lib/azure-metricalert/test/AzureMetricAlert.integ.d.ts +1 -0
- package/lib/azure-metricalert/test/AzureMetricAlert.integ.js +85 -0
- package/lib/azure-metricalert/test/AzureMetricAlert.spec.js +4 -21
- package/lib/azure-networksecuritygroup/lib/preconfigured-rules.js +1 -1
- package/lib/azure-networksecuritygroup/lib/securitygroup.d.ts +4 -3
- package/lib/azure-networksecuritygroup/lib/securitygroup.js +7 -7
- package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.integ.d.ts +1 -0
- package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.integ.js +85 -0
- package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.spec.js +4 -23
- package/lib/azure-queryrulealert/lib/query-rule-alert.js +1 -1
- package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.integ.d.ts +1 -0
- package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.integ.js +63 -0
- package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.spec.js +4 -21
- package/lib/azure-resourcegroup/lib/resource-group.js +1 -1
- package/lib/azure-resourcegroup/test/AzureResourceGroup.integ.d.ts +1 -0
- package/lib/azure-resourcegroup/test/AzureResourceGroup.integ.js +41 -0
- package/lib/azure-resourcegroup/test/AzureResourceGroup.spec.js +4 -17
- package/lib/azure-storageaccount/lib/account.d.ts +5 -0
- package/lib/azure-storageaccount/lib/account.js +3 -2
- package/lib/azure-storageaccount/lib/container.js +2 -2
- package/lib/azure-storageaccount/lib/fileshare.js +2 -2
- package/lib/azure-storageaccount/lib/queue.js +1 -1
- package/lib/azure-storageaccount/lib/table.js +1 -1
- package/lib/azure-storageaccount/test/AzureStorageAccount.integ.d.ts +1 -0
- package/lib/azure-storageaccount/test/AzureStorageAccount.integ.js +84 -0
- package/lib/azure-storageaccount/test/AzureStorageAccount.spec.js +4 -17
- package/lib/azure-virtualmachine/lib/image-references.js +2 -2
- package/lib/azure-virtualmachine/lib/vm.d.ts +29 -6
- package/lib/azure-virtualmachine/lib/vm.js +17 -15
- package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.integ.d.ts +1 -0
- package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.integ.js +109 -0
- package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.spec.js +5 -25
- package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.integ.d.ts +1 -0
- package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.integ.js +105 -0
- package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.spec.js +4 -23
- package/lib/azure-virtualmachinescaleset/lib/cluster.d.ts +28 -6
- package/lib/azure-virtualmachinescaleset/lib/cluster.js +13 -11
- package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.integ.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.integ.js +113 -0
- package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.spec.js +5 -25
- package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.integ.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.integ.js +109 -0
- package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.spec.js +4 -23
- package/lib/azure-virtualnetwork/lib/network.d.ts +4 -3
- package/lib/azure-virtualnetwork/lib/network.js +7 -6
- package/lib/azure-virtualnetwork/lib/peering.js +1 -1
- package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.integ.d.ts +1 -0
- package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.integ.js +92 -0
- package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.spec.js +5 -25
- package/lib/core-azure/lib/diagsettings.d.ts +3 -2
- package/lib/core-azure/lib/diagsettings.js +15 -21
- package/lib/core-azure/lib/rbac.js +1 -1
- package/lib/core-azure/lib/resource.js +6 -4
- package/lib/core-azure/test/AzureResource.integ.d.ts +1 -0
- package/lib/core-azure/test/AzureResource.integ.js +75 -0
- package/lib/testing/index.d.ts +34 -0
- package/lib/testing/index.js +235 -2
- package/package.json +32 -11
- package/cdktf.out/manifest.json +0 -13
- package/cdktf.out/stacks/testAzureActionGroup/cdk.tf.json +0 -111
- package/cdktf.out/stacks/testAzureApplicationGateway/cdk.tf.json +0 -588
- package/cdktf.out/stacks/testAzureApplicationInsights/cdk.tf.json +0 -245
- package/cdktf.out/stacks/testAzureContainerRegistry/cdk.tf.json +0 -179
- package/cdktf.out/stacks/testAzureEventhub/cdk.tf.json +0 -236
- package/cdktf.out/stacks/testAzureKeyVault/cdk.tf.json +0 -436
- package/cdktf.out/stacks/testAzureKubernetesCluster/cdk.tf.json +0 -152
- package/cdktf.out/stacks/testAzureKusto/cdk.tf.json +0 -209
- package/cdktf.out/stacks/testAzureLinuxFunctionApp/cdk.tf.json +0 -439
- package/cdktf.out/stacks/testAzureLinuxVirtualMachineExample/cdk.tf.json +0 -283
- package/cdktf.out/stacks/testAzureLinuxVirtualMachineScaleSetExample/cdk.tf.json +0 -261
- package/cdktf.out/stacks/testAzureLogAnalytics/cdk.tf.json +0 -309
- package/cdktf.out/stacks/testAzureMetricAlert/cdk.tf.json +0 -161
- package/cdktf.out/stacks/testAzureNetworkSecurityGroup/cdk.tf.json +0 -271
- package/cdktf.out/stacks/testAzureQueryRuleAlert/cdk.tf.json +0 -122
- package/cdktf.out/stacks/testAzureResourceGroup/cdk.tf.json +0 -88
- package/cdktf.out/stacks/testAzureStorageAccount/cdk.tf.json +0 -339
- package/cdktf.out/stacks/testAzureVirtualNetwork/cdk.tf.json +0 -264
- package/cdktf.out/stacks/testAzureWindowVirtualMachineScaleSetExample/cdk.tf.json +0 -261
- package/cdktf.out/stacks/testAzureWindowsVirtualMachineExample/cdk.tf.json +0 -280
- package/cdktf.out/stacks/testExampleAzureResource/cdk.tf.json +0 -167
- package/lib/azure-actiongroup/test/ExampleAzureActionGroup.d.ts +0 -5
- package/lib/azure-actiongroup/test/ExampleAzureActionGroup.js +0 -66
- package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.d.ts +0 -5
- package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.js +0 -267
- package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.d.ts +0 -5
- package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.js +0 -87
- package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.d.ts +0 -5
- package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.js +0 -57
- package/lib/azure-eventhub/lib/cluster.js +0 -64
- package/lib/azure-eventhub/test/ExampleAzureEventhub.d.ts +0 -5
- package/lib/azure-eventhub/test/ExampleAzureEventhub.js +0 -72
- package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.d.ts +0 -5
- package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.js +0 -123
- package/lib/azure-keyvault/test/ExampleAzureKeyVault.d.ts +0 -5
- package/lib/azure-keyvault/test/ExampleAzureKeyVault.js +0 -112
- package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.d.ts +0 -5
- package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.js +0 -65
- package/lib/azure-kusto/test/ExampleAzureKusto.d.ts +0 -5
- package/lib/azure-kusto/test/ExampleAzureKusto.js +0 -71
- package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.d.ts +0 -5
- package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.js +0 -115
- package/lib/azure-metricalert/test/ExampleAzureMetricAlert.d.ts +0 -5
- package/lib/azure-metricalert/test/ExampleAzureMetricAlert.js +0 -81
- package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.d.ts +0 -5
- package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.js +0 -97
- package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.d.ts +0 -5
- package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.js +0 -67
- package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.d.ts +0 -5
- package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.js +0 -29
- package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.d.ts +0 -5
- package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.js +0 -102
- package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.d.ts +0 -5
- package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.js +0 -106
- package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.d.ts +0 -5
- package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.js +0 -102
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.d.ts +0 -5
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.js +0 -107
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.d.ts +0 -5
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.js +0 -103
- package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.d.ts +0 -5
- package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.js +0 -88
- package/lib/core-azure/test/AzureResource.spec.js +0 -19
- package/lib/core-azure/test/ExampleAzureResource.d.ts +0 -5
- package/lib/core-azure/test/ExampleAzureResource.js +0 -67
- package/tfsec.json +0 -4
- /package/lib/{core-azure/test/AzureResource.spec.d.ts → azure-actiongroup/test/AzureActionGroup.integ.d.ts} +0 -0
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"//": {
|
|
3
|
-
"metadata": {
|
|
4
|
-
"backend": "local",
|
|
5
|
-
"overrides": {
|
|
6
|
-
"azurerm_monitor_diagnostic_setting": [
|
|
7
|
-
"dynamic"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"stackName": "testAzureApplicationInsights",
|
|
11
|
-
"version": "0.17.3"
|
|
12
|
-
},
|
|
13
|
-
"outputs": {
|
|
14
|
-
"testAzureApplicationInsights": {
|
|
15
|
-
"key_vault_name": "key_vault_name",
|
|
16
|
-
"testappi": {
|
|
17
|
-
"app_id": "app_id",
|
|
18
|
-
"connection_string": "connection_string",
|
|
19
|
-
"id": "id",
|
|
20
|
-
"instrumentation_key": "instrumentation_key",
|
|
21
|
-
"name": "name"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"data": {
|
|
27
|
-
"azurerm_client_config": {
|
|
28
|
-
"CurrentClientConfig": {
|
|
29
|
-
"//": {
|
|
30
|
-
"metadata": {
|
|
31
|
-
"path": "testAzureApplicationInsights/CurrentClientConfig",
|
|
32
|
-
"uniqueId": "CurrentClientConfig"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"azurerm_monitor_diagnostic_categories": {
|
|
38
|
-
"testappi_diagsettings_diagcategories_156E5D4B": {
|
|
39
|
-
"//": {
|
|
40
|
-
"metadata": {
|
|
41
|
-
"path": "testAzureApplicationInsights/testappi/diagsettings/diagcategories",
|
|
42
|
-
"uniqueId": "testappi_diagsettings_diagcategories_156E5D4B"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"resource_id": "${azurerm_application_insights.testappi_appinsights_8B7486B2.id}"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"output": {
|
|
50
|
-
"app_id": {
|
|
51
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.app_id}"
|
|
52
|
-
},
|
|
53
|
-
"connection_string": {
|
|
54
|
-
"sensitive": true,
|
|
55
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.connection_string}"
|
|
56
|
-
},
|
|
57
|
-
"id": {
|
|
58
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.id}"
|
|
59
|
-
},
|
|
60
|
-
"instrumentation_key": {
|
|
61
|
-
"sensitive": true,
|
|
62
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.instrumentation_key}"
|
|
63
|
-
},
|
|
64
|
-
"key_vault_name": {
|
|
65
|
-
"value": "${azurerm_key_vault.key_vault.name}"
|
|
66
|
-
},
|
|
67
|
-
"name": {
|
|
68
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.name}"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"provider": {
|
|
72
|
-
"azurerm": [
|
|
73
|
-
{
|
|
74
|
-
"features": {
|
|
75
|
-
"resource_group": {
|
|
76
|
-
"prevent_deletion_if_contains_resources": false
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"resource": {
|
|
83
|
-
"azurerm_application_insights": {
|
|
84
|
-
"testappi_appinsights_8B7486B2": {
|
|
85
|
-
"//": {
|
|
86
|
-
"metadata": {
|
|
87
|
-
"path": "testAzureApplicationInsights/testappi/appinsights",
|
|
88
|
-
"uniqueId": "testappi_appinsights_8B7486B2"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"application_type": "web",
|
|
92
|
-
"location": "eastus",
|
|
93
|
-
"name": "appi-${var.name}",
|
|
94
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
95
|
-
"workspace_id": "${azurerm_log_analytics_workspace.log_analytics.id}"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"azurerm_key_vault": {
|
|
99
|
-
"key_vault": {
|
|
100
|
-
"//": {
|
|
101
|
-
"metadata": {
|
|
102
|
-
"path": "testAzureApplicationInsights/key_vault",
|
|
103
|
-
"uniqueId": "key_vault"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"access_policy": [
|
|
107
|
-
{
|
|
108
|
-
"application_id": null,
|
|
109
|
-
"certificate_permissions": null,
|
|
110
|
-
"key_permissions": null,
|
|
111
|
-
"object_id": "${data.azurerm_client_config.CurrentClientConfig.object_id}",
|
|
112
|
-
"secret_permissions": [
|
|
113
|
-
"Get",
|
|
114
|
-
"List",
|
|
115
|
-
"Set",
|
|
116
|
-
"Delete",
|
|
117
|
-
"Backup",
|
|
118
|
-
"Restore",
|
|
119
|
-
"Recover",
|
|
120
|
-
"Purge"
|
|
121
|
-
],
|
|
122
|
-
"storage_permissions": null,
|
|
123
|
-
"tenant_id": "123e4567-e89b-12d3-a456-426614174000"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"location": "${azurerm_resource_group.rg.location}",
|
|
127
|
-
"name": "kv-${var.name}",
|
|
128
|
-
"purge_protection_enabled": true,
|
|
129
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
130
|
-
"sku_name": "standard",
|
|
131
|
-
"soft_delete_retention_days": 7,
|
|
132
|
-
"tenant_id": "123e4567-e89b-12d3-a456-426614174000"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"azurerm_key_vault_secret": {
|
|
136
|
-
"testappi_customSecretName_611BF11E": {
|
|
137
|
-
"//": {
|
|
138
|
-
"metadata": {
|
|
139
|
-
"path": "testAzureApplicationInsights/testappi/customSecretName",
|
|
140
|
-
"uniqueId": "testappi_customSecretName_611BF11E"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"key_vault_id": "${azurerm_key_vault.key_vault.id}",
|
|
144
|
-
"name": "customSecretName",
|
|
145
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.instrumentation_key}"
|
|
146
|
-
},
|
|
147
|
-
"testappi_instrumentation-key_146E88B7": {
|
|
148
|
-
"//": {
|
|
149
|
-
"metadata": {
|
|
150
|
-
"path": "testAzureApplicationInsights/testappi/instrumentation-key",
|
|
151
|
-
"uniqueId": "testappi_instrumentation-key_146E88B7"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"key_vault_id": "${azurerm_key_vault.key_vault.id}",
|
|
155
|
-
"name": "instrumentation-key",
|
|
156
|
-
"value": "${azurerm_application_insights.testappi_appinsights_8B7486B2.instrumentation_key}"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"azurerm_log_analytics_workspace": {
|
|
160
|
-
"log_analytics": {
|
|
161
|
-
"//": {
|
|
162
|
-
"metadata": {
|
|
163
|
-
"path": "testAzureApplicationInsights/log_analytics",
|
|
164
|
-
"uniqueId": "log_analytics"
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"location": "eastus",
|
|
168
|
-
"name": "la-${var.name}",
|
|
169
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"azurerm_monitor_diagnostic_setting": {
|
|
173
|
-
"testappi_diagsettings_8C5B453D": {
|
|
174
|
-
"//": {
|
|
175
|
-
"metadata": {
|
|
176
|
-
"path": "testAzureApplicationInsights/testappi/diagsettings/diagsettings",
|
|
177
|
-
"uniqueId": "testappi_diagsettings_8C5B453D"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"dynamic": {
|
|
181
|
-
"enabled_log": {
|
|
182
|
-
"content": {
|
|
183
|
-
"category": "${enabled_log.value}"
|
|
184
|
-
},
|
|
185
|
-
"for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.testappi_diagsettings_diagcategories_156E5D4B.log_category_types)}"
|
|
186
|
-
},
|
|
187
|
-
"metric": {
|
|
188
|
-
"content": {
|
|
189
|
-
"category": "${metric.value}"
|
|
190
|
-
},
|
|
191
|
-
"for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.testappi_diagsettings_diagcategories_156E5D4B.metrics)}"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"log_analytics_workspace_id": "${azurerm_log_analytics_workspace.log_analytics.id}",
|
|
195
|
-
"name": "diagsettings",
|
|
196
|
-
"target_resource_id": "${azurerm_application_insights.testappi_appinsights_8B7486B2.id}"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"azurerm_resource_group": {
|
|
200
|
-
"rg": {
|
|
201
|
-
"//": {
|
|
202
|
-
"metadata": {
|
|
203
|
-
"path": "testAzureApplicationInsights/rg",
|
|
204
|
-
"uniqueId": "rg"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"location": "eastus",
|
|
208
|
-
"name": "rg-${var.name}"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"azurerm_role_assignment": {
|
|
212
|
-
"testappi_TfTokenTOKEN21Contributor_role_7970B5FC": {
|
|
213
|
-
"//": {
|
|
214
|
-
"metadata": {
|
|
215
|
-
"path": "testAzureApplicationInsights/testappi/${data.azurerm_client_config.CurrentClientConfig.object_id}Contributor/role",
|
|
216
|
-
"uniqueId": "testappi_TfTokenTOKEN21Contributor_role_7970B5FC"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"principal_id": "${data.azurerm_client_config.CurrentClientConfig.object_id}",
|
|
220
|
-
"role_definition_name": "Contributor",
|
|
221
|
-
"scope": "${azurerm_application_insights.testappi_appinsights_8B7486B2.id}"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"terraform": {
|
|
226
|
-
"backend": {
|
|
227
|
-
"local": {
|
|
228
|
-
"path": "/home/runner/work/terraform-cdk-constructs/terraform-cdk-constructs/terraform.testAzureApplicationInsights.tfstate"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"required_providers": {
|
|
232
|
-
"azurerm": {
|
|
233
|
-
"source": "azurerm",
|
|
234
|
-
"version": "3.70.0"
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
"variable": {
|
|
239
|
-
"name": {
|
|
240
|
-
"default": "test",
|
|
241
|
-
"description": "System name used to randomize the resources",
|
|
242
|
-
"type": "string"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"//": {
|
|
3
|
-
"metadata": {
|
|
4
|
-
"backend": "local",
|
|
5
|
-
"overrides": {
|
|
6
|
-
"azurerm_monitor_diagnostic_setting": [
|
|
7
|
-
"dynamic"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"stackName": "testAzureContainerRegistry",
|
|
11
|
-
"version": "0.17.3"
|
|
12
|
-
},
|
|
13
|
-
"outputs": {
|
|
14
|
-
"testAzureContainerRegistry": {
|
|
15
|
-
"resource_group_name": "resource_group_name",
|
|
16
|
-
"testACR": {
|
|
17
|
-
"container_registry_name": "container_registry_name",
|
|
18
|
-
"id": "id",
|
|
19
|
-
"login_server": "login_server"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"data": {
|
|
25
|
-
"azurerm_client_config": {
|
|
26
|
-
"CurrentClientConfig": {
|
|
27
|
-
"//": {
|
|
28
|
-
"metadata": {
|
|
29
|
-
"path": "testAzureContainerRegistry/CurrentClientConfig",
|
|
30
|
-
"uniqueId": "CurrentClientConfig"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"azurerm_monitor_diagnostic_categories": {
|
|
36
|
-
"testACR_diagsettings_diagcategories_3A5014D0": {
|
|
37
|
-
"//": {
|
|
38
|
-
"metadata": {
|
|
39
|
-
"path": "testAzureContainerRegistry/testACR/diagsettings/diagcategories",
|
|
40
|
-
"uniqueId": "testACR_diagsettings_diagcategories_3A5014D0"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"resource_id": "${azurerm_container_registry.testACR_acr_53FDF08B.id}"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"output": {
|
|
48
|
-
"container_registry_name": {
|
|
49
|
-
"value": "${azurerm_container_registry.testACR_acr_53FDF08B.name}"
|
|
50
|
-
},
|
|
51
|
-
"id": {
|
|
52
|
-
"value": "${azurerm_container_registry.testACR_acr_53FDF08B.id}"
|
|
53
|
-
},
|
|
54
|
-
"login_server": {
|
|
55
|
-
"value": "${azurerm_container_registry.testACR_acr_53FDF08B.login_server}"
|
|
56
|
-
},
|
|
57
|
-
"resource_group_name": {
|
|
58
|
-
"value": "${azurerm_resource_group.rg.name}"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"provider": {
|
|
62
|
-
"azurerm": [
|
|
63
|
-
{
|
|
64
|
-
"features": {
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
"resource": {
|
|
70
|
-
"azurerm_container_registry": {
|
|
71
|
-
"testACR_acr_53FDF08B": {
|
|
72
|
-
"//": {
|
|
73
|
-
"metadata": {
|
|
74
|
-
"path": "testAzureContainerRegistry/testACR/acr",
|
|
75
|
-
"uniqueId": "testACR_acr_53FDF08B"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"admin_enabled": false,
|
|
79
|
-
"georeplications": [
|
|
80
|
-
{
|
|
81
|
-
"location": "westus"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"location": "${azurerm_resource_group.rg.location}",
|
|
85
|
-
"name": "acr${var.name}",
|
|
86
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
87
|
-
"sku": "Premium",
|
|
88
|
-
"tags": {
|
|
89
|
-
"environment": "test"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"azurerm_log_analytics_workspace": {
|
|
94
|
-
"log_analytics": {
|
|
95
|
-
"//": {
|
|
96
|
-
"metadata": {
|
|
97
|
-
"path": "testAzureContainerRegistry/log_analytics",
|
|
98
|
-
"uniqueId": "log_analytics"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"location": "eastus",
|
|
102
|
-
"name": "la-${var.name}",
|
|
103
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"azurerm_monitor_diagnostic_setting": {
|
|
107
|
-
"testACR_diagsettings_FF489381": {
|
|
108
|
-
"//": {
|
|
109
|
-
"metadata": {
|
|
110
|
-
"path": "testAzureContainerRegistry/testACR/diagsettings/diagsettings",
|
|
111
|
-
"uniqueId": "testACR_diagsettings_FF489381"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"dynamic": {
|
|
115
|
-
"enabled_log": {
|
|
116
|
-
"content": {
|
|
117
|
-
"category": "${enabled_log.value}"
|
|
118
|
-
},
|
|
119
|
-
"for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.testACR_diagsettings_diagcategories_3A5014D0.log_category_types)}"
|
|
120
|
-
},
|
|
121
|
-
"metric": {
|
|
122
|
-
"content": {
|
|
123
|
-
"category": "${metric.value}"
|
|
124
|
-
},
|
|
125
|
-
"for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.testACR_diagsettings_diagcategories_3A5014D0.metrics)}"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"log_analytics_workspace_id": "${azurerm_log_analytics_workspace.log_analytics.id}",
|
|
129
|
-
"name": "diagsettings",
|
|
130
|
-
"target_resource_id": "${azurerm_container_registry.testACR_acr_53FDF08B.id}"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"azurerm_resource_group": {
|
|
134
|
-
"rg": {
|
|
135
|
-
"//": {
|
|
136
|
-
"metadata": {
|
|
137
|
-
"path": "testAzureContainerRegistry/rg",
|
|
138
|
-
"uniqueId": "rg"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"location": "eastus",
|
|
142
|
-
"name": "rg-${var.name}"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"azurerm_role_assignment": {
|
|
146
|
-
"testACR_TfTokenTOKEN13Contributor_role_4E5CB245": {
|
|
147
|
-
"//": {
|
|
148
|
-
"metadata": {
|
|
149
|
-
"path": "testAzureContainerRegistry/testACR/${data.azurerm_client_config.CurrentClientConfig.object_id}Contributor/role",
|
|
150
|
-
"uniqueId": "testACR_TfTokenTOKEN13Contributor_role_4E5CB245"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"principal_id": "${data.azurerm_client_config.CurrentClientConfig.object_id}",
|
|
154
|
-
"role_definition_name": "Contributor",
|
|
155
|
-
"scope": "${azurerm_container_registry.testACR_acr_53FDF08B.id}"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"terraform": {
|
|
160
|
-
"backend": {
|
|
161
|
-
"local": {
|
|
162
|
-
"path": "/home/runner/work/terraform-cdk-constructs/terraform-cdk-constructs/terraform.testAzureContainerRegistry.tfstate"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"required_providers": {
|
|
166
|
-
"azurerm": {
|
|
167
|
-
"source": "azurerm",
|
|
168
|
-
"version": "3.70.0"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"variable": {
|
|
173
|
-
"name": {
|
|
174
|
-
"default": "test",
|
|
175
|
-
"description": "System name used to randomize the resources",
|
|
176
|
-
"type": "string"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"//": {
|
|
3
|
-
"metadata": {
|
|
4
|
-
"backend": "local",
|
|
5
|
-
"stackName": "testAzureEventhub",
|
|
6
|
-
"version": "0.17.3"
|
|
7
|
-
},
|
|
8
|
-
"outputs": {
|
|
9
|
-
"testAzureEventhub": {
|
|
10
|
-
"eventhub": {
|
|
11
|
-
"ehinstance": {
|
|
12
|
-
"ehauthrule-test-rule": {
|
|
13
|
-
"primary_connection_string": "primary_connection_string",
|
|
14
|
-
"primary_key": "primary_key"
|
|
15
|
-
},
|
|
16
|
-
"ehconsumergroup-test-consumer-group": {
|
|
17
|
-
"id": "id"
|
|
18
|
-
},
|
|
19
|
-
"id": "id",
|
|
20
|
-
"partition_ids": "partition_ids"
|
|
21
|
-
},
|
|
22
|
-
"id": "id",
|
|
23
|
-
"metricalert": {
|
|
24
|
-
"id": "id"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"data": {
|
|
31
|
-
"azurerm_client_config": {
|
|
32
|
-
"CurrentClientConfig": {
|
|
33
|
-
"//": {
|
|
34
|
-
"metadata": {
|
|
35
|
-
"path": "testAzureEventhub/CurrentClientConfig",
|
|
36
|
-
"uniqueId": "CurrentClientConfig"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"output": {
|
|
43
|
-
"id": {
|
|
44
|
-
"value": "${azurerm_monitor_metric_alert.eventhub_metricalert_metricAlert_98164A67.id}"
|
|
45
|
-
},
|
|
46
|
-
"partition_ids": {
|
|
47
|
-
"value": "${tolist(azurerm_eventhub.eventhub_ehinstance_ehinstance-test-eventhub-instance_6C544BA5.partition_ids)}"
|
|
48
|
-
},
|
|
49
|
-
"primary_connection_string": {
|
|
50
|
-
"sensitive": true,
|
|
51
|
-
"value": "${azurerm_eventhub_authorization_rule.eventhub_ehinstance_ehauthrule-test-rule_80C99DBB.primary_connection_string}"
|
|
52
|
-
},
|
|
53
|
-
"primary_key": {
|
|
54
|
-
"sensitive": true,
|
|
55
|
-
"value": "${azurerm_eventhub_authorization_rule.eventhub_ehinstance_ehauthrule-test-rule_80C99DBB.primary_key}"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"provider": {
|
|
59
|
-
"azurerm": [
|
|
60
|
-
{
|
|
61
|
-
"features": {
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
"resource": {
|
|
67
|
-
"azurerm_eventhub": {
|
|
68
|
-
"eventhub_ehinstance_ehinstance-test-eventhub-instance_6C544BA5": {
|
|
69
|
-
"//": {
|
|
70
|
-
"metadata": {
|
|
71
|
-
"path": "testAzureEventhub/eventhub/ehinstance/ehinstance-test-eventhub-instance",
|
|
72
|
-
"uniqueId": "eventhub_ehinstance_ehinstance-test-eventhub-instance_6C544BA5"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"message_retention": 1,
|
|
76
|
-
"name": "test-eventhub-instance",
|
|
77
|
-
"namespace_name": "ehns-${var.name}",
|
|
78
|
-
"partition_count": 2,
|
|
79
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
80
|
-
"status": "Active"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"azurerm_eventhub_authorization_rule": {
|
|
84
|
-
"eventhub_ehinstance_ehauthrule-test-rule_80C99DBB": {
|
|
85
|
-
"//": {
|
|
86
|
-
"metadata": {
|
|
87
|
-
"path": "testAzureEventhub/eventhub/ehinstance/ehauthrule-test-rule/test-rule",
|
|
88
|
-
"uniqueId": "eventhub_ehinstance_ehauthrule-test-rule_80C99DBB"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"eventhub_name": "test-eventhub-instance",
|
|
92
|
-
"listen": true,
|
|
93
|
-
"manage": false,
|
|
94
|
-
"name": "test-rule",
|
|
95
|
-
"namespace_name": "ehns-${var.name}",
|
|
96
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
97
|
-
"send": true
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"azurerm_eventhub_consumer_group": {
|
|
101
|
-
"eventhub_ehinstance_ehconsumergroup-test-consumer-group_3A1228DF": {
|
|
102
|
-
"//": {
|
|
103
|
-
"metadata": {
|
|
104
|
-
"path": "testAzureEventhub/eventhub/ehinstance/ehconsumergroup-test-consumer-group/test-consumer-group",
|
|
105
|
-
"uniqueId": "eventhub_ehinstance_ehconsumergroup-test-consumer-group_3A1228DF"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"eventhub_name": "test-eventhub-instance",
|
|
109
|
-
"name": "test-consumer-group",
|
|
110
|
-
"namespace_name": "ehns-${var.name}",
|
|
111
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"azurerm_eventhub_namespace": {
|
|
115
|
-
"eventhub_ehnamespace_921C1DD7": {
|
|
116
|
-
"//": {
|
|
117
|
-
"metadata": {
|
|
118
|
-
"path": "testAzureEventhub/eventhub/ehnamespace",
|
|
119
|
-
"uniqueId": "eventhub_ehnamespace_921C1DD7"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"auto_inflate_enabled": false,
|
|
123
|
-
"capacity": 2,
|
|
124
|
-
"identity": {
|
|
125
|
-
"type": "SystemAssigned"
|
|
126
|
-
},
|
|
127
|
-
"local_authentication_enabled": true,
|
|
128
|
-
"location": "${azurerm_resource_group.rg.location}",
|
|
129
|
-
"maximum_throughput_units": 2,
|
|
130
|
-
"minimum_tls_version": "1.2",
|
|
131
|
-
"name": "ehns-${var.name}",
|
|
132
|
-
"public_network_access_enabled": true,
|
|
133
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
134
|
-
"sku": "Basic",
|
|
135
|
-
"tags": {
|
|
136
|
-
},
|
|
137
|
-
"zone_redundant": false
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"azurerm_kusto_eventhub_data_connection": {
|
|
141
|
-
"eventhub_ehinstance_ehkustodataconnection-test-eventhub-instance-test-kusto-data-connection_kusto-data-connection-test-kusto-data-connection_9E92DF1E": {
|
|
142
|
-
"//": {
|
|
143
|
-
"metadata": {
|
|
144
|
-
"path": "testAzureEventhub/eventhub/ehinstance/ehkustodataconnection-test-eventhub-instance-test-kusto-data-connection/kusto-data-connection-test-kusto-data-connection",
|
|
145
|
-
"uniqueId": "eventhub_ehinstance_ehkustodataconnection-test-eventhub-instance-test-kusto-data-connection_kusto-data-connection-test-kusto-data-connection_9E92DF1E"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"cluster_name": "testkustocluster",
|
|
149
|
-
"compression": "None",
|
|
150
|
-
"consumer_group": "$Default",
|
|
151
|
-
"data_format": "JSON",
|
|
152
|
-
"database_name": "test-kusto-database",
|
|
153
|
-
"database_routing_type": "Single",
|
|
154
|
-
"eventhub_id": "${azurerm_eventhub.eventhub_ehinstance_ehinstance-test-eventhub-instance_6C544BA5.id}",
|
|
155
|
-
"location": "eastus",
|
|
156
|
-
"name": "test-kusto-data-connection",
|
|
157
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"azurerm_monitor_metric_alert": {
|
|
161
|
-
"eventhub_metricalert_metricAlert_98164A67": {
|
|
162
|
-
"//": {
|
|
163
|
-
"metadata": {
|
|
164
|
-
"path": "testAzureEventhub/eventhub/metricalert/metricAlert",
|
|
165
|
-
"uniqueId": "eventhub_metricalert_metricAlert_98164A67"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"auto_mitigate": true,
|
|
169
|
-
"criteria": [
|
|
170
|
-
{
|
|
171
|
-
"aggregation": "Total",
|
|
172
|
-
"metric_name": "Server Errors.",
|
|
173
|
-
"metric_namespace": "Microsoft.EventHub/namespaces",
|
|
174
|
-
"operator": "GreaterThan",
|
|
175
|
-
"skip_metric_validation": false,
|
|
176
|
-
"threshold": 100
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"enabled": true,
|
|
180
|
-
"frequency": "PT5M",
|
|
181
|
-
"name": "test-metric-alert",
|
|
182
|
-
"resource_group_name": "${azurerm_resource_group.rg.name}",
|
|
183
|
-
"scopes": [
|
|
184
|
-
"${azurerm_eventhub_namespace.eventhub_ehnamespace_921C1DD7.id}"
|
|
185
|
-
],
|
|
186
|
-
"severity": 3,
|
|
187
|
-
"window_size": "PT5M"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"azurerm_resource_group": {
|
|
191
|
-
"rg": {
|
|
192
|
-
"//": {
|
|
193
|
-
"metadata": {
|
|
194
|
-
"path": "testAzureEventhub/rg",
|
|
195
|
-
"uniqueId": "rg"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"location": "eastus",
|
|
199
|
-
"name": "rg-${var.name}"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"azurerm_role_assignment": {
|
|
203
|
-
"eventhub_TfTokenTOKEN20Contributor_role_030CBDBA": {
|
|
204
|
-
"//": {
|
|
205
|
-
"metadata": {
|
|
206
|
-
"path": "testAzureEventhub/eventhub/${data.azurerm_client_config.CurrentClientConfig.object_id}Contributor/role",
|
|
207
|
-
"uniqueId": "eventhub_TfTokenTOKEN20Contributor_role_030CBDBA"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"principal_id": "${data.azurerm_client_config.CurrentClientConfig.object_id}",
|
|
211
|
-
"role_definition_name": "Contributor",
|
|
212
|
-
"scope": "${azurerm_eventhub_namespace.eventhub_ehnamespace_921C1DD7.id}"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"terraform": {
|
|
217
|
-
"backend": {
|
|
218
|
-
"local": {
|
|
219
|
-
"path": "/home/runner/work/terraform-cdk-constructs/terraform-cdk-constructs/terraform.testAzureEventhub.tfstate"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"required_providers": {
|
|
223
|
-
"azurerm": {
|
|
224
|
-
"source": "azurerm",
|
|
225
|
-
"version": "3.70.0"
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"variable": {
|
|
230
|
-
"name": {
|
|
231
|
-
"default": "test",
|
|
232
|
-
"description": "System name used to randomize the resources",
|
|
233
|
-
"type": "string"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|