Skip to content

Commit

Permalink
Merge pull request #123 from PerfectThymeTech/marvinbuss/azapiv2
Browse files Browse the repository at this point in the history
Bump azure/azapi from 1.15.0 to 2.0.1
  • Loading branch information
marvinbuss authored Nov 13, 2024
2 parents 32d6cdf + 342a494 commit f4afdb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions code/infra/containerapps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "azapi_resource" "container_apps_environment" {
location = var.location
tags = var.tags

body = jsonencode({
body = {
properties = {
# appInsightsConfiguration = { # Can only be set when DaprAIConnectionString is set to null
# connectionString = module.application_insights.application_insights_connection_string
Expand Down Expand Up @@ -34,7 +34,7 @@ resource "azapi_resource" "container_apps_environment" {
]
zoneRedundant = false
}
})
}
}

resource "azapi_resource" "container_apps_job" {
Expand All @@ -50,7 +50,7 @@ resource "azapi_resource" "container_apps_job" {
]
}

body = jsonencode({
body = {
properties = {
configuration = {
replicaRetryLimit = 1
Expand Down Expand Up @@ -168,5 +168,5 @@ resource "azapi_resource" "container_apps_job" {
}
workloadProfileName = "Consumption"
}
})
}
}
8 changes: 4 additions & 4 deletions code/infra/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azapi_resource" "subnet_container_app" {
name = "ConAppEnvironmentSubnet"
parent_id = data.azurerm_virtual_network.virtual_network.id

body = jsonencode({
body = {
properties = {
addressPrefix = var.subnet_cidr_container_app
delegations = [
Expand All @@ -26,15 +26,15 @@ resource "azapi_resource" "subnet_container_app" {
serviceEndpointPolicies = []
serviceEndpoints = []
}
})
}
}

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

body = jsonencode({
body = {
properties = {
addressPrefix = var.subnet_cidr_private_endpoints
delegations = []
Expand All @@ -50,7 +50,7 @@ resource "azapi_resource" "subnet_private_endpoints" {
serviceEndpointPolicies = []
serviceEndpoints = []
}
})
}

depends_on = [
azapi_resource.subnet_container_app
Expand Down
2 changes: 1 addition & 1 deletion code/infra/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}
azapi = {
source = "azure/azapi"
version = "1.15.0"
version = "2.0.1"
}
time = {
source = "hashicorp/time"
Expand Down

0 comments on commit f4afdb4

Please sign in to comment.