@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.
Files changed (202) hide show
  1. package/.jsii +858 -681
  2. package/API.md +499 -405
  3. package/README.md +4 -5
  4. package/docs/testing.md +39 -137
  5. package/lib/azure-actiongroup/lib/actiongroup.d.ts +1 -1
  6. package/lib/azure-actiongroup/lib/actiongroup.js +4 -4
  7. package/lib/azure-actiongroup/model/action-group-props.d.ts +3 -2
  8. package/lib/azure-actiongroup/model/action-group-props.js +1 -1
  9. package/lib/azure-actiongroup/test/AzureActionGroup.integ.js +66 -0
  10. package/lib/azure-actiongroup/test/AzureActionGroup.spec.js +5 -33
  11. package/lib/azure-applicationgateway/lib/gateway.d.ts +5 -3
  12. package/lib/azure-applicationgateway/lib/gateway.js +14 -7
  13. package/lib/azure-applicationgateway/test/AzureApplicationGateway.integ.d.ts +1 -0
  14. package/lib/azure-applicationgateway/test/AzureApplicationGateway.integ.js +272 -0
  15. package/lib/azure-applicationgateway/test/AzureApplicationGateway.spec.js +3 -35
  16. package/lib/azure-applicationinsights/lib/appinsights.d.ts +4 -3
  17. package/lib/azure-applicationinsights/lib/appinsights.js +6 -6
  18. package/lib/azure-applicationinsights/test/AzureAppInsights.integ.d.ts +1 -0
  19. package/lib/azure-applicationinsights/test/AzureAppInsights.integ.js +101 -0
  20. package/lib/azure-applicationinsights/test/AzureAppInsights.spec.js +4 -27
  21. package/lib/azure-containerregistry/lib/registry.d.ts +4 -3
  22. package/lib/azure-containerregistry/lib/registry.js +5 -5
  23. package/lib/azure-containerregistry/test/AzureContainerRegistry.integ.d.ts +1 -0
  24. package/lib/azure-containerregistry/test/AzureContainerRegistry.integ.js +68 -0
  25. package/lib/azure-containerregistry/test/AzureContainerRegistry.spec.js +4 -23
  26. package/lib/azure-datalake/lib/datalake.d.ts +1 -0
  27. package/lib/azure-datalake/lib/datalake.js +2 -1
  28. package/lib/azure-datalake/test/AzureDatalake.spec.d.ts +1 -0
  29. package/lib/azure-datalake/test/AzureDatalake.spec.js +32 -0
  30. package/lib/azure-datalake/test/AzureStorageAccount.integ.d.ts +1 -0
  31. package/lib/azure-datalake/test/AzureStorageAccount.integ.js +60 -0
  32. package/lib/azure-eventhub/lib/authorization.js +1 -1
  33. package/lib/azure-eventhub/lib/consumer.js +1 -1
  34. package/lib/azure-eventhub/lib/{cluster.d.ts → eventhubcluster.d.ts} +11 -7
  35. package/lib/azure-eventhub/lib/eventhubcluster.js +64 -0
  36. package/lib/azure-eventhub/lib/index.d.ts +1 -1
  37. package/lib/azure-eventhub/lib/index.js +2 -2
  38. package/lib/azure-eventhub/lib/instance.d.ts +1 -0
  39. package/lib/azure-eventhub/lib/instance.js +5 -4
  40. package/lib/azure-eventhub/lib/kusto-connection.js +1 -1
  41. package/lib/azure-eventhub/lib/namespace.d.ts +7 -6
  42. package/lib/azure-eventhub/lib/namespace.js +24 -26
  43. package/lib/azure-eventhub/test/AzureEventhub.integ.d.ts +1 -0
  44. package/lib/azure-eventhub/test/AzureEventhub.integ.js +72 -0
  45. package/lib/azure-eventhub/test/AzureEventhub.spec.js +4 -27
  46. package/lib/azure-functionapp/lib/functionapplinux.js +1 -1
  47. package/lib/azure-functionapp/test/AzureLinuxFunctionApp.integ.d.ts +1 -0
  48. package/lib/azure-functionapp/test/AzureLinuxFunctionApp.integ.js +117 -0
  49. package/lib/azure-functionapp/test/AzureLinuxFunctionApp.spec.js +4 -21
  50. package/lib/azure-keyvault/lib/certificate.js +2 -2
  51. package/lib/azure-keyvault/lib/key.js +1 -1
  52. package/lib/azure-keyvault/lib/policy.js +1 -1
  53. package/lib/azure-keyvault/lib/secret.js +1 -1
  54. package/lib/azure-keyvault/lib/vault.d.ts +3 -2
  55. package/lib/azure-keyvault/lib/vault.js +4 -4
  56. package/lib/azure-keyvault/test/AzureKeyVault.integ.d.ts +1 -0
  57. package/lib/azure-keyvault/test/AzureKeyVault.integ.js +119 -0
  58. package/lib/azure-keyvault/test/AzureKeyVault.spec.js +4 -35
  59. package/lib/azure-kubernetes/lib/cluster.js +1 -1
  60. package/lib/azure-kubernetes/test/AzureKubernetesCluster.integ.d.ts +1 -0
  61. package/lib/azure-kubernetes/test/AzureKubernetesCluster.integ.js +75 -0
  62. package/lib/azure-kubernetes/test/AzureKubernetesCluster.spec.js +4 -21
  63. package/lib/azure-kusto/lib/cluster.d.ts +9 -5
  64. package/lib/azure-kusto/lib/cluster.js +66 -42
  65. package/lib/azure-kusto/lib/compute-specification.js +1 -1
  66. package/lib/azure-kusto/lib/database.d.ts +7 -8
  67. package/lib/azure-kusto/lib/database.js +23 -25
  68. package/lib/azure-kusto/test/AzureKusto.integ.d.ts +1 -0
  69. package/lib/azure-kusto/test/AzureKusto.integ.js +74 -0
  70. package/lib/azure-kusto/test/AzureKusto.spec.js +3 -22
  71. package/lib/azure-loganalytics/lib/workspace.d.ts +6 -3
  72. package/lib/azure-loganalytics/lib/workspace.js +7 -6
  73. package/lib/azure-loganalytics/test/AzureLogAnalytics.integ.d.ts +1 -0
  74. package/lib/azure-loganalytics/test/AzureLogAnalytics.integ.js +117 -0
  75. package/lib/azure-loganalytics/test/AzureLogAnalytics.spec.js +4 -23
  76. package/lib/azure-metricalert/lib/metric-alert.js +1 -1
  77. package/lib/azure-metricalert/test/AzureMetricAlert.integ.d.ts +1 -0
  78. package/lib/azure-metricalert/test/AzureMetricAlert.integ.js +85 -0
  79. package/lib/azure-metricalert/test/AzureMetricAlert.spec.js +4 -21
  80. package/lib/azure-networksecuritygroup/lib/preconfigured-rules.js +1 -1
  81. package/lib/azure-networksecuritygroup/lib/securitygroup.d.ts +4 -3
  82. package/lib/azure-networksecuritygroup/lib/securitygroup.js +7 -7
  83. package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.integ.d.ts +1 -0
  84. package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.integ.js +85 -0
  85. package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.spec.js +4 -23
  86. package/lib/azure-queryrulealert/lib/query-rule-alert.js +1 -1
  87. package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.integ.d.ts +1 -0
  88. package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.integ.js +63 -0
  89. package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.spec.js +4 -21
  90. package/lib/azure-resourcegroup/lib/resource-group.js +1 -1
  91. package/lib/azure-resourcegroup/test/AzureResourceGroup.integ.d.ts +1 -0
  92. package/lib/azure-resourcegroup/test/AzureResourceGroup.integ.js +41 -0
  93. package/lib/azure-resourcegroup/test/AzureResourceGroup.spec.js +4 -17
  94. package/lib/azure-storageaccount/lib/account.d.ts +5 -0
  95. package/lib/azure-storageaccount/lib/account.js +3 -2
  96. package/lib/azure-storageaccount/lib/container.js +2 -2
  97. package/lib/azure-storageaccount/lib/fileshare.js +2 -2
  98. package/lib/azure-storageaccount/lib/queue.js +1 -1
  99. package/lib/azure-storageaccount/lib/table.js +1 -1
  100. package/lib/azure-storageaccount/test/AzureStorageAccount.integ.d.ts +1 -0
  101. package/lib/azure-storageaccount/test/AzureStorageAccount.integ.js +84 -0
  102. package/lib/azure-storageaccount/test/AzureStorageAccount.spec.js +4 -17
  103. package/lib/azure-virtualmachine/lib/image-references.js +2 -2
  104. package/lib/azure-virtualmachine/lib/vm.d.ts +29 -6
  105. package/lib/azure-virtualmachine/lib/vm.js +17 -15
  106. package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.integ.d.ts +1 -0
  107. package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.integ.js +109 -0
  108. package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.spec.js +5 -25
  109. package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.integ.d.ts +1 -0
  110. package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.integ.js +105 -0
  111. package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.spec.js +4 -23
  112. package/lib/azure-virtualmachinescaleset/lib/cluster.d.ts +28 -6
  113. package/lib/azure-virtualmachinescaleset/lib/cluster.js +13 -11
  114. package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.integ.d.ts +1 -0
  115. package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.integ.js +113 -0
  116. package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.spec.js +5 -25
  117. package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.integ.d.ts +1 -0
  118. package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.integ.js +109 -0
  119. package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.spec.js +4 -23
  120. package/lib/azure-virtualnetwork/lib/network.d.ts +4 -3
  121. package/lib/azure-virtualnetwork/lib/network.js +7 -6
  122. package/lib/azure-virtualnetwork/lib/peering.js +1 -1
  123. package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.integ.d.ts +1 -0
  124. package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.integ.js +92 -0
  125. package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.spec.js +5 -25
  126. package/lib/core-azure/lib/diagsettings.d.ts +3 -2
  127. package/lib/core-azure/lib/diagsettings.js +15 -21
  128. package/lib/core-azure/lib/rbac.js +1 -1
  129. package/lib/core-azure/lib/resource.js +6 -4
  130. package/lib/core-azure/test/AzureResource.integ.d.ts +1 -0
  131. package/lib/core-azure/test/AzureResource.integ.js +75 -0
  132. package/lib/testing/index.d.ts +34 -0
  133. package/lib/testing/index.js +235 -2
  134. package/package.json +32 -11
  135. package/cdktf.out/manifest.json +0 -13
  136. package/cdktf.out/stacks/testAzureActionGroup/cdk.tf.json +0 -111
  137. package/cdktf.out/stacks/testAzureApplicationGateway/cdk.tf.json +0 -588
  138. package/cdktf.out/stacks/testAzureApplicationInsights/cdk.tf.json +0 -245
  139. package/cdktf.out/stacks/testAzureContainerRegistry/cdk.tf.json +0 -179
  140. package/cdktf.out/stacks/testAzureEventhub/cdk.tf.json +0 -236
  141. package/cdktf.out/stacks/testAzureKeyVault/cdk.tf.json +0 -436
  142. package/cdktf.out/stacks/testAzureKubernetesCluster/cdk.tf.json +0 -152
  143. package/cdktf.out/stacks/testAzureKusto/cdk.tf.json +0 -209
  144. package/cdktf.out/stacks/testAzureLinuxFunctionApp/cdk.tf.json +0 -439
  145. package/cdktf.out/stacks/testAzureLinuxVirtualMachineExample/cdk.tf.json +0 -283
  146. package/cdktf.out/stacks/testAzureLinuxVirtualMachineScaleSetExample/cdk.tf.json +0 -261
  147. package/cdktf.out/stacks/testAzureLogAnalytics/cdk.tf.json +0 -309
  148. package/cdktf.out/stacks/testAzureMetricAlert/cdk.tf.json +0 -161
  149. package/cdktf.out/stacks/testAzureNetworkSecurityGroup/cdk.tf.json +0 -271
  150. package/cdktf.out/stacks/testAzureQueryRuleAlert/cdk.tf.json +0 -122
  151. package/cdktf.out/stacks/testAzureResourceGroup/cdk.tf.json +0 -88
  152. package/cdktf.out/stacks/testAzureStorageAccount/cdk.tf.json +0 -339
  153. package/cdktf.out/stacks/testAzureVirtualNetwork/cdk.tf.json +0 -264
  154. package/cdktf.out/stacks/testAzureWindowVirtualMachineScaleSetExample/cdk.tf.json +0 -261
  155. package/cdktf.out/stacks/testAzureWindowsVirtualMachineExample/cdk.tf.json +0 -280
  156. package/cdktf.out/stacks/testExampleAzureResource/cdk.tf.json +0 -167
  157. package/lib/azure-actiongroup/test/ExampleAzureActionGroup.d.ts +0 -5
  158. package/lib/azure-actiongroup/test/ExampleAzureActionGroup.js +0 -66
  159. package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.d.ts +0 -5
  160. package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.js +0 -267
  161. package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.d.ts +0 -5
  162. package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.js +0 -87
  163. package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.d.ts +0 -5
  164. package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.js +0 -57
  165. package/lib/azure-eventhub/lib/cluster.js +0 -64
  166. package/lib/azure-eventhub/test/ExampleAzureEventhub.d.ts +0 -5
  167. package/lib/azure-eventhub/test/ExampleAzureEventhub.js +0 -72
  168. package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.d.ts +0 -5
  169. package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.js +0 -123
  170. package/lib/azure-keyvault/test/ExampleAzureKeyVault.d.ts +0 -5
  171. package/lib/azure-keyvault/test/ExampleAzureKeyVault.js +0 -112
  172. package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.d.ts +0 -5
  173. package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.js +0 -65
  174. package/lib/azure-kusto/test/ExampleAzureKusto.d.ts +0 -5
  175. package/lib/azure-kusto/test/ExampleAzureKusto.js +0 -71
  176. package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.d.ts +0 -5
  177. package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.js +0 -115
  178. package/lib/azure-metricalert/test/ExampleAzureMetricAlert.d.ts +0 -5
  179. package/lib/azure-metricalert/test/ExampleAzureMetricAlert.js +0 -81
  180. package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.d.ts +0 -5
  181. package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.js +0 -97
  182. package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.d.ts +0 -5
  183. package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.js +0 -67
  184. package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.d.ts +0 -5
  185. package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.js +0 -29
  186. package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.d.ts +0 -5
  187. package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.js +0 -102
  188. package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.d.ts +0 -5
  189. package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.js +0 -106
  190. package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.d.ts +0 -5
  191. package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.js +0 -102
  192. package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.d.ts +0 -5
  193. package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.js +0 -107
  194. package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.d.ts +0 -5
  195. package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.js +0 -103
  196. package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.d.ts +0 -5
  197. package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.js +0 -88
  198. package/lib/core-azure/test/AzureResource.spec.js +0 -19
  199. package/lib/core-azure/test/ExampleAzureResource.d.ts +0 -5
  200. package/lib/core-azure/test/ExampleAzureResource.js +0 -67
  201. package/tfsec.json +0 -4
  202. /package/lib/{core-azure/test/AzureResource.spec.d.ts → azure-actiongroup/test/AzureActionGroup.integ.d.ts} +0 -0
@@ -1,209 +0,0 @@
1
- {
2
- "//": {
3
- "metadata": {
4
- "backend": "local",
5
- "overrides": {
6
- "azurerm_kusto_database": [
7
- "hot_cache_period",
8
- "soft_delete_period"
9
- ]
10
- },
11
- "stackName": "testAzureKusto",
12
- "version": "0.17.3"
13
- },
14
- "outputs": {
15
- "testAzureKusto": {
16
- "kusto": {
17
- "Kusto_data_ingestion_uri": "Kusto_data_ingestion_uri",
18
- "Kusto_id": "Kusto_id",
19
- "Kusto_identity": "Kusto_identity",
20
- "Kusto_uri": "Kusto_uri",
21
- "testDB1": {
22
- "id": "id"
23
- }
24
- }
25
- }
26
- }
27
- },
28
- "data": {
29
- "azurerm_client_config": {
30
- "CurrentClientConfig": {
31
- "//": {
32
- "metadata": {
33
- "path": "testAzureKusto/CurrentClientConfig",
34
- "uniqueId": "CurrentClientConfig"
35
- }
36
- }
37
- }
38
- }
39
- },
40
- "output": {
41
- "Kusto_data_ingestion_uri": {
42
- "value": "${azurerm_kusto_cluster.kusto_Kusto_6B093AC5.data_ingestion_uri}"
43
- },
44
- "Kusto_id": {
45
- "value": "${azurerm_kusto_cluster.kusto_Kusto_6B093AC5.id}"
46
- },
47
- "Kusto_identity": {
48
- "sensitive": true,
49
- "value": "${azurerm_kusto_cluster.kusto_Kusto_6B093AC5.identity[0]}"
50
- },
51
- "Kusto_uri": {
52
- "value": "${azurerm_kusto_cluster.kusto_Kusto_6B093AC5.uri}"
53
- },
54
- "id": {
55
- "value": "${azurerm_kusto_database.kusto_testDB1_kusto-db-testDB1_D1A53426.id}"
56
- }
57
- },
58
- "provider": {
59
- "azurerm": [
60
- {
61
- "features": {
62
- "resource_group": {
63
- "prevent_deletion_if_contains_resources": false
64
- }
65
- }
66
- }
67
- ]
68
- },
69
- "resource": {
70
- "azurerm_kusto_cluster": {
71
- "kusto_Kusto_6B093AC5": {
72
- "//": {
73
- "metadata": {
74
- "path": "testAzureKusto/kusto/Kusto",
75
- "uniqueId": "kusto_Kusto_6B093AC5"
76
- }
77
- },
78
- "auto_stop_enabled": true,
79
- "identity": {
80
- "identity_ids": [
81
- ],
82
- "type": "SystemAssigned"
83
- },
84
- "location": "${azurerm_resource_group.rg.location}",
85
- "name": "kusto${var.name}",
86
- "public_network_access_enabled": true,
87
- "purge_enabled": false,
88
- "resource_group_name": "${azurerm_resource_group.rg.name}",
89
- "sku": {
90
- "capacity": 2,
91
- "name": "Dev(No SLA)_Standard_E2a_v4"
92
- },
93
- "streaming_ingestion_enabled": true,
94
- "zones": [
95
- "1",
96
- "2",
97
- "3"
98
- ]
99
- }
100
- },
101
- "azurerm_kusto_database": {
102
- "kusto_testDB1_kusto-db-testDB1_D1A53426": {
103
- "//": {
104
- "metadata": {
105
- "path": "testAzureKusto/kusto/testDB1/kusto-db-testDB1",
106
- "uniqueId": "kusto_testDB1_kusto-db-testDB1_D1A53426"
107
- }
108
- },
109
- "cluster_name": "kusto${var.name}",
110
- "hot_cache_period": "P7D",
111
- "location": "${azurerm_resource_group.rg.location}",
112
- "name": "testDB1",
113
- "resource_group_name": "${azurerm_resource_group.rg.name}",
114
- "soft_delete_period": "P31D"
115
- }
116
- },
117
- "azurerm_kusto_database_principal_assignment": {
118
- "kusto_testDB1_kusto-db-User1Admin-access_836A7F36": {
119
- "//": {
120
- "metadata": {
121
- "path": "testAzureKusto/kusto/testDB1/kusto-db-User1Admin-access",
122
- "uniqueId": "kusto_testDB1_kusto-db-User1Admin-access_836A7F36"
123
- }
124
- },
125
- "cluster_name": "kusto${var.name}",
126
- "database_name": "testDB1",
127
- "name": "User1Admin",
128
- "principal_id": "${data.azurerm_client_config.CurrentClientConfig.client_id}",
129
- "principal_type": "User",
130
- "resource_group_name": "${azurerm_resource_group.rg.name}",
131
- "role": "Admin",
132
- "tenant_id": "${data.azurerm_client_config.CurrentClientConfig.tenant_id}"
133
- }
134
- },
135
- "azurerm_kusto_script": {
136
- "kusto_testDB1_kusto-db-testDB1-script-MyTestScript_228E71EF": {
137
- "//": {
138
- "metadata": {
139
- "path": "testAzureKusto/kusto/testDB1/kusto-db-testDB1-script-MyTestScript",
140
- "uniqueId": "kusto_testDB1_kusto-db-testDB1-script-MyTestScript_228E71EF"
141
- }
142
- },
143
- "continue_on_errors_enabled": false,
144
- "database_id": "${azurerm_kusto_database.kusto_testDB1_kusto-db-testDB1_D1A53426.id}",
145
- "force_an_update_when_value_changed": "1b98d80c44453d043e9faf8aa4ca9e9e",
146
- "name": "script-MyTestScript",
147
- "script_content": ".create table MyTestTable2 ( Timestamp:datetime, User:string, Value:int32 )"
148
- },
149
- "kusto_testDB1_kusto-db-testDB1-table-MyTestTable_A0AAD29F": {
150
- "//": {
151
- "metadata": {
152
- "path": "testAzureKusto/kusto/testDB1/kusto-db-testDB1-table-MyTestTable",
153
- "uniqueId": "kusto_testDB1_kusto-db-testDB1-table-MyTestTable_A0AAD29F"
154
- }
155
- },
156
- "continue_on_errors_enabled": false,
157
- "database_id": "${azurerm_kusto_database.kusto_testDB1_kusto-db-testDB1_D1A53426.id}",
158
- "force_an_update_when_value_changed": "9b2184ae8b9df7cda6deb740fbba4e37",
159
- "name": "MyTestTable",
160
- "script_content": ".create table MyTestTable ( Timestamp:datetime, User:string, Value:int32 )"
161
- }
162
- },
163
- "azurerm_resource_group": {
164
- "rg": {
165
- "//": {
166
- "metadata": {
167
- "path": "testAzureKusto/rg",
168
- "uniqueId": "rg"
169
- }
170
- },
171
- "location": "eastus",
172
- "name": "rg-${var.name}"
173
- }
174
- },
175
- "azurerm_role_assignment": {
176
- "kusto_TfTokenTOKEN8Contributor_role_73BEA9AD": {
177
- "//": {
178
- "metadata": {
179
- "path": "testAzureKusto/kusto/${data.azurerm_client_config.CurrentClientConfig.object_id}Contributor/role",
180
- "uniqueId": "kusto_TfTokenTOKEN8Contributor_role_73BEA9AD"
181
- }
182
- },
183
- "principal_id": "${data.azurerm_client_config.CurrentClientConfig.object_id}",
184
- "role_definition_name": "Contributor",
185
- "scope": "${azurerm_kusto_cluster.kusto_Kusto_6B093AC5.id}"
186
- }
187
- }
188
- },
189
- "terraform": {
190
- "backend": {
191
- "local": {
192
- "path": "/home/runner/work/terraform-cdk-constructs/terraform-cdk-constructs/terraform.testAzureKusto.tfstate"
193
- }
194
- },
195
- "required_providers": {
196
- "azurerm": {
197
- "source": "azurerm",
198
- "version": "3.70.0"
199
- }
200
- }
201
- },
202
- "variable": {
203
- "name": {
204
- "default": "test",
205
- "description": "System name used to randomize the resources",
206
- "type": "string"
207
- }
208
- }
209
- }
@@ -1,439 +0,0 @@
1
- {
2
- "//": {
3
- "metadata": {
4
- "backend": "local",
5
- "overrides": {
6
- "azurerm_monitor_diagnostic_setting": [
7
- "dynamic"
8
- ]
9
- },
10
- "stackName": "testAzureLinuxFunctionApp",
11
- "version": "0.17.3"
12
- },
13
- "outputs": {
14
- "testAzureLinuxFunctionApp": {
15
- "default_hostname": "default_hostname",
16
- "function_app_id": "function_app_id",
17
- "function_app_kind": "function_app_kind",
18
- "function_app_name": "function_app_name",
19
- "resource_group_name": "resource_group_name"
20
- }
21
- }
22
- },
23
- "data": {
24
- "azurerm_monitor_diagnostic_categories": {
25
- "consumptionFA_diagsettings_diagcategories_AF51DBB0": {
26
- "//": {
27
- "metadata": {
28
- "path": "testAzureLinuxFunctionApp/consumptionFA/diagsettings/diagcategories",
29
- "uniqueId": "consumptionFA_diagsettings_diagcategories_AF51DBB0"
30
- }
31
- },
32
- "resource_id": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.id}"
33
- }
34
- }
35
- },
36
- "output": {
37
- "default_hostname": {
38
- "value": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.default_hostname}"
39
- },
40
- "function_app_id": {
41
- "value": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.id}"
42
- },
43
- "function_app_kind": {
44
- "value": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.kind}"
45
- },
46
- "function_app_name": {
47
- "value": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.name}"
48
- },
49
- "resource_group_name": {
50
- "value": "${azurerm_resource_group.rg.name}"
51
- }
52
- },
53
- "provider": {
54
- "azurerm": [
55
- {
56
- "features": {
57
- "resource_group": {
58
- "prevent_deletion_if_contains_resources": false
59
- }
60
- }
61
- }
62
- ]
63
- },
64
- "resource": {
65
- "azurerm_linux_function_app": {
66
- "consumptionFA2_FunctionApp_F726133A": {
67
- "//": {
68
- "metadata": {
69
- "path": "testAzureLinuxFunctionApp/consumptionFA2/FunctionApp",
70
- "uniqueId": "consumptionFA2_FunctionApp_F726133A"
71
- }
72
- },
73
- "builtin_logging_enabled": true,
74
- "client_certificate_enabled": false,
75
- "client_certificate_exclusion_paths": "",
76
- "client_certificate_mode": "Required",
77
- "enabled": true,
78
- "functions_extension_version": "~4",
79
- "https_only": true,
80
- "identity": {
81
- "type": "SystemAssigned"
82
- },
83
- "location": "eastus",
84
- "name": "fa${var.name}2",
85
- "public_network_access_enabled": true,
86
- "resource_group_name": "${azurerm_resource_group.rg.name}",
87
- "service_plan_id": "${azurerm_service_plan.consumptionFA_AppServicePlan_8DD812C2.id}",
88
- "site_config": {
89
- "application_stack": {
90
- "node_version": "14"
91
- },
92
- "cors": {
93
- "allowed_origins": [
94
- "*"
95
- ]
96
- },
97
- "use_32_bit_worker": false
98
- },
99
- "storage_account_name": "${azurerm_storage_account.consumptionFA_sa_CFEEEED8.name}",
100
- "storage_uses_managed_identity": true,
101
- "tags": {
102
- "test": "test"
103
- }
104
- },
105
- "consumptionFA_FunctionApp_0D946802": {
106
- "//": {
107
- "metadata": {
108
- "path": "testAzureLinuxFunctionApp/consumptionFA/FunctionApp",
109
- "uniqueId": "consumptionFA_FunctionApp_0D946802"
110
- }
111
- },
112
- "builtin_logging_enabled": true,
113
- "client_certificate_enabled": false,
114
- "client_certificate_exclusion_paths": "",
115
- "client_certificate_mode": "Required",
116
- "enabled": true,
117
- "functions_extension_version": "~4",
118
- "https_only": true,
119
- "identity": {
120
- "type": "SystemAssigned"
121
- },
122
- "location": "eastus",
123
- "name": "fa${var.name}",
124
- "public_network_access_enabled": true,
125
- "resource_group_name": "${azurerm_resource_group.rg.name}",
126
- "service_plan_id": "${azurerm_service_plan.consumptionFA_AppServicePlan_8DD812C2.id}",
127
- "site_config": {
128
- "application_stack": {
129
- "node_version": "14"
130
- },
131
- "use_32_bit_worker": false
132
- },
133
- "storage_account_name": "${azurerm_storage_account.consumptionFA_sa_CFEEEED8.name}",
134
- "storage_uses_managed_identity": true,
135
- "tags": {
136
- "test": "test"
137
- }
138
- },
139
- "premiumFA_FunctionApp_BCBE916E": {
140
- "//": {
141
- "metadata": {
142
- "path": "testAzureLinuxFunctionApp/premiumFA/FunctionApp",
143
- "uniqueId": "premiumFA_FunctionApp_BCBE916E"
144
- }
145
- },
146
- "builtin_logging_enabled": true,
147
- "client_certificate_enabled": false,
148
- "client_certificate_exclusion_paths": "",
149
- "client_certificate_mode": "Required",
150
- "enabled": true,
151
- "functions_extension_version": "~4",
152
- "https_only": true,
153
- "identity": {
154
- "type": "SystemAssigned"
155
- },
156
- "location": "eastus",
157
- "name": "faprem${var.name}",
158
- "public_network_access_enabled": true,
159
- "resource_group_name": "${azurerm_resource_group.premiumFA_rg_5BA9B2FE.name}",
160
- "service_plan_id": "${azurerm_service_plan.premiumFA_AppServicePlan_8A862E92.id}",
161
- "site_config": {
162
- "application_stack": {
163
- "node_version": "14"
164
- },
165
- "use_32_bit_worker": false
166
- },
167
- "storage_account_name": "${azurerm_storage_account.premiumFA_sa_DC65AFA0.name}",
168
- "storage_uses_managed_identity": true,
169
- "tags": {
170
- "test": "test"
171
- }
172
- },
173
- "servicePlanFA_FunctionApp_897DB6CB": {
174
- "//": {
175
- "metadata": {
176
- "path": "testAzureLinuxFunctionApp/servicePlanFA/FunctionApp",
177
- "uniqueId": "servicePlanFA_FunctionApp_897DB6CB"
178
- }
179
- },
180
- "builtin_logging_enabled": true,
181
- "client_certificate_enabled": false,
182
- "client_certificate_exclusion_paths": "",
183
- "client_certificate_mode": "Required",
184
- "enabled": true,
185
- "functions_extension_version": "~4",
186
- "https_only": true,
187
- "identity": {
188
- "type": "SystemAssigned"
189
- },
190
- "location": "eastus",
191
- "name": "fasp${var.name}",
192
- "public_network_access_enabled": true,
193
- "resource_group_name": "${azurerm_resource_group.servicePlanFA_rg_758B3FD5.name}",
194
- "service_plan_id": "${azurerm_service_plan.servicePlanFA_AppServicePlan_6B09BCCF.id}",
195
- "site_config": {
196
- "application_stack": {
197
- "node_version": "14"
198
- },
199
- "cors": {
200
- "allowed_origins": [
201
- "*"
202
- ]
203
- },
204
- "use_32_bit_worker": false
205
- },
206
- "storage_account_name": "${azurerm_storage_account.servicePlanFA_sa_084D89FA.name}",
207
- "storage_uses_managed_identity": true,
208
- "tags": {
209
- "test": "test"
210
- }
211
- }
212
- },
213
- "azurerm_log_analytics_workspace": {
214
- "log_analytics": {
215
- "//": {
216
- "metadata": {
217
- "path": "testAzureLinuxFunctionApp/log_analytics",
218
- "uniqueId": "log_analytics"
219
- }
220
- },
221
- "location": "eastus",
222
- "name": "la-${var.name}",
223
- "resource_group_name": "${azurerm_resource_group.rg.name}"
224
- }
225
- },
226
- "azurerm_monitor_diagnostic_setting": {
227
- "consumptionFA_diagsettings_ABB8EE42": {
228
- "//": {
229
- "metadata": {
230
- "path": "testAzureLinuxFunctionApp/consumptionFA/diagsettings/diagsettings",
231
- "uniqueId": "consumptionFA_diagsettings_ABB8EE42"
232
- }
233
- },
234
- "dynamic": {
235
- "enabled_log": {
236
- "content": {
237
- "category": "${enabled_log.value}"
238
- },
239
- "for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.consumptionFA_diagsettings_diagcategories_AF51DBB0.log_category_types)}"
240
- },
241
- "metric": {
242
- "content": {
243
- "category": "${metric.value}"
244
- },
245
- "for_each": "${tolist(data.azurerm_monitor_diagnostic_categories.consumptionFA_diagsettings_diagcategories_AF51DBB0.metrics)}"
246
- }
247
- },
248
- "log_analytics_workspace_id": "${azurerm_log_analytics_workspace.log_analytics.id}",
249
- "name": "diagsettings",
250
- "target_resource_id": "${azurerm_linux_function_app.consumptionFA_FunctionApp_0D946802.id}"
251
- }
252
- },
253
- "azurerm_resource_group": {
254
- "premiumFA_rg_5BA9B2FE": {
255
- "//": {
256
- "metadata": {
257
- "path": "testAzureLinuxFunctionApp/premiumFA/rg",
258
- "uniqueId": "premiumFA_rg_5BA9B2FE"
259
- }
260
- },
261
- "location": "eastus",
262
- "name": "rg-faprem${var.name}",
263
- "tags": {
264
- "test": "test"
265
- }
266
- },
267
- "rg": {
268
- "//": {
269
- "metadata": {
270
- "path": "testAzureLinuxFunctionApp/rg",
271
- "uniqueId": "rg"
272
- }
273
- },
274
- "location": "eastus",
275
- "name": "rg-${var.name}",
276
- "tags": {
277
- "test": "test"
278
- }
279
- },
280
- "servicePlanFA_rg_758B3FD5": {
281
- "//": {
282
- "metadata": {
283
- "path": "testAzureLinuxFunctionApp/servicePlanFA/rg",
284
- "uniqueId": "servicePlanFA_rg_758B3FD5"
285
- }
286
- },
287
- "location": "eastus",
288
- "name": "rg-fasp${var.name}",
289
- "tags": {
290
- "test": "test"
291
- }
292
- }
293
- },
294
- "azurerm_service_plan": {
295
- "consumptionFA_AppServicePlan_8DD812C2": {
296
- "//": {
297
- "metadata": {
298
- "path": "testAzureLinuxFunctionApp/consumptionFA/AppServicePlan",
299
- "uniqueId": "consumptionFA_AppServicePlan_8DD812C2"
300
- }
301
- },
302
- "location": "eastus",
303
- "name": "fa${var.name}asp",
304
- "os_type": "Linux",
305
- "resource_group_name": "${azurerm_resource_group.rg.name}",
306
- "sku_name": "Y1",
307
- "tags": {
308
- "test": "test"
309
- }
310
- },
311
- "premiumFA_AppServicePlan_8A862E92": {
312
- "//": {
313
- "metadata": {
314
- "path": "testAzureLinuxFunctionApp/premiumFA/AppServicePlan",
315
- "uniqueId": "premiumFA_AppServicePlan_8A862E92"
316
- }
317
- },
318
- "location": "eastus",
319
- "name": "faprem${var.name}asp",
320
- "os_type": "Linux",
321
- "resource_group_name": "${azurerm_resource_group.premiumFA_rg_5BA9B2FE.name}",
322
- "sku_name": "EP1",
323
- "tags": {
324
- "test": "test"
325
- }
326
- },
327
- "servicePlanFA_AppServicePlan_6B09BCCF": {
328
- "//": {
329
- "metadata": {
330
- "path": "testAzureLinuxFunctionApp/servicePlanFA/AppServicePlan",
331
- "uniqueId": "servicePlanFA_AppServicePlan_6B09BCCF"
332
- }
333
- },
334
- "location": "eastus",
335
- "name": "fasp${var.name}asp",
336
- "os_type": "Linux",
337
- "resource_group_name": "${azurerm_resource_group.servicePlanFA_rg_758B3FD5.name}",
338
- "sku_name": "B1",
339
- "tags": {
340
- "test": "test"
341
- }
342
- }
343
- },
344
- "azurerm_storage_account": {
345
- "consumptionFA_sa_CFEEEED8": {
346
- "//": {
347
- "metadata": {
348
- "path": "testAzureLinuxFunctionApp/consumptionFA/sa",
349
- "uniqueId": "consumptionFA_sa_CFEEEED8"
350
- }
351
- },
352
- "account_replication_type": "LRS",
353
- "account_tier": "Standard",
354
- "location": "eastus",
355
- "min_tls_version": "TLS1_2",
356
- "name": "fa${var.name}stacc",
357
- "network_rules": {
358
- "bypass": [
359
- "AzureServices"
360
- ],
361
- "default_action": "Deny"
362
- },
363
- "public_network_access_enabled": false,
364
- "resource_group_name": "${azurerm_resource_group.rg.name}",
365
- "tags": {
366
- "test": "test"
367
- }
368
- },
369
- "premiumFA_sa_DC65AFA0": {
370
- "//": {
371
- "metadata": {
372
- "path": "testAzureLinuxFunctionApp/premiumFA/sa",
373
- "uniqueId": "premiumFA_sa_DC65AFA0"
374
- }
375
- },
376
- "account_replication_type": "LRS",
377
- "account_tier": "Standard",
378
- "location": "eastus",
379
- "min_tls_version": "TLS1_2",
380
- "name": "faprem${var.name}stacc",
381
- "network_rules": {
382
- "bypass": [
383
- "AzureServices"
384
- ],
385
- "default_action": "Deny"
386
- },
387
- "public_network_access_enabled": false,
388
- "resource_group_name": "${azurerm_resource_group.premiumFA_rg_5BA9B2FE.name}",
389
- "tags": {
390
- "test": "test"
391
- }
392
- },
393
- "servicePlanFA_sa_084D89FA": {
394
- "//": {
395
- "metadata": {
396
- "path": "testAzureLinuxFunctionApp/servicePlanFA/sa",
397
- "uniqueId": "servicePlanFA_sa_084D89FA"
398
- }
399
- },
400
- "account_replication_type": "LRS",
401
- "account_tier": "Standard",
402
- "location": "eastus",
403
- "min_tls_version": "TLS1_2",
404
- "name": "fasp${var.name}stacc",
405
- "network_rules": {
406
- "bypass": [
407
- "AzureServices"
408
- ],
409
- "default_action": "Deny"
410
- },
411
- "public_network_access_enabled": false,
412
- "resource_group_name": "${azurerm_resource_group.servicePlanFA_rg_758B3FD5.name}",
413
- "tags": {
414
- "test": "test"
415
- }
416
- }
417
- }
418
- },
419
- "terraform": {
420
- "backend": {
421
- "local": {
422
- "path": "/home/runner/work/terraform-cdk-constructs/terraform-cdk-constructs/terraform.testAzureLinuxFunctionApp.tfstate"
423
- }
424
- },
425
- "required_providers": {
426
- "azurerm": {
427
- "source": "azurerm",
428
- "version": "3.70.0"
429
- }
430
- }
431
- },
432
- "variable": {
433
- "name": {
434
- "default": "test",
435
- "description": "System name used to randomize the resources",
436
- "type": "string"
437
- }
438
- }
439
- }