Skip to content

Commit f4afdb4

Browse files
authored
Merge pull request #123 from PerfectThymeTech/marvinbuss/azapiv2
Bump azure/azapi from 1.15.0 to 2.0.1
2 parents 32d6cdf + 342a494 commit f4afdb4

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

code/infra/containerapps.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "azapi_resource" "container_apps_environment" {
55
location = var.location
66
tags = var.tags
77

8-
body = jsonencode({
8+
body = {
99
properties = {
1010
# appInsightsConfiguration = { # Can only be set when DaprAIConnectionString is set to null
1111
# connectionString = module.application_insights.application_insights_connection_string
@@ -34,7 +34,7 @@ resource "azapi_resource" "container_apps_environment" {
3434
]
3535
zoneRedundant = false
3636
}
37-
})
37+
}
3838
}
3939

4040
resource "azapi_resource" "container_apps_job" {
@@ -50,7 +50,7 @@ resource "azapi_resource" "container_apps_job" {
5050
]
5151
}
5252

53-
body = jsonencode({
53+
body = {
5454
properties = {
5555
configuration = {
5656
replicaRetryLimit = 1
@@ -168,5 +168,5 @@ resource "azapi_resource" "container_apps_job" {
168168
}
169169
workloadProfileName = "Consumption"
170170
}
171-
})
171+
}
172172
}

code/infra/network.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "azapi_resource" "subnet_container_app" {
33
name = "ConAppEnvironmentSubnet"
44
parent_id = data.azurerm_virtual_network.virtual_network.id
55

6-
body = jsonencode({
6+
body = {
77
properties = {
88
addressPrefix = var.subnet_cidr_container_app
99
delegations = [
@@ -26,15 +26,15 @@ resource "azapi_resource" "subnet_container_app" {
2626
serviceEndpointPolicies = []
2727
serviceEndpoints = []
2828
}
29-
})
29+
}
3030
}
3131

3232
resource "azapi_resource" "subnet_private_endpoints" {
3333
type = "Microsoft.Network/virtualNetworks/subnets@2024-01-01"
3434
name = "ConAppPrivateEndpointSubnet"
3535
parent_id = data.azurerm_virtual_network.virtual_network.id
3636

37-
body = jsonencode({
37+
body = {
3838
properties = {
3939
addressPrefix = var.subnet_cidr_private_endpoints
4040
delegations = []
@@ -50,7 +50,7 @@ resource "azapi_resource" "subnet_private_endpoints" {
5050
serviceEndpointPolicies = []
5151
serviceEndpoints = []
5252
}
53-
})
53+
}
5454

5555
depends_on = [
5656
azapi_resource.subnet_container_app

code/infra/terraform.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ terraform {
88
}
99
azapi = {
1010
source = "azure/azapi"
11-
version = "1.15.0"
11+
version = "2.0.1"
1212
}
1313
time = {
1414
source = "hashicorp/time"

0 commit comments

Comments
 (0)