Skip to content

Commit

Permalink
rename container app
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Oct 8, 2024
1 parent 76cf34a commit 2bd3453
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions infra/deploy/auth/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ variable "services" {
},
{
domain = "api"
path = "/bootstrapper"
hostname = "bootstrapper"
path = "/deployapi"
hostname = "deployapi"
}
]

Expand Down
5 changes: 0 additions & 5 deletions infra/modules/container_app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ data "azurerm_postgresql_flexible_server" "server" {
resource_group_name = local.infrastructure_resource_group_name
}

data "azurerm_user_assigned_identity" "postgres_admin" {
name = "mipsqlsrvadmin${local.infrastructure_suffix}"
resource_group_name = local.infrastructure_resource_group_name
}

resource "azurerm_container_app" "app" {
name = "ca${local.suffix}"

Expand Down
6 changes: 5 additions & 1 deletion src/apps/Altinn.Authorization.DeployApi/deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ module "app" {

user_assigned_identities = [data.azurerm_user_assigned_identity.application_admin.id]

variables = {
"ManagedIdentity__ClientId" = data.azurerm_user_assigned_identity.application_admin.id
}

instance = var.instance
environment = var.environment
name = "bootstrapper"
name = "deployapi"
image = var.image
}
2 changes: 1 addition & 1 deletion src/apps/Altinn.Authorization.DeployApi/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"image_name": "altinn-authorization-bootstrapper"
"image_name": "altinn-authorization-deployapi"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@

var app = builder.Build();

app.MapPost("bootstrapper/api/v1/databases", (BootstrapDatabasePipeline pipeline, HttpContext context) => pipeline.Run(context));
app.MapPost("deployapi/api/v1/databases/bootstrap", (BootstrapDatabasePipeline pipeline, HttpContext context) => pipeline.Run(context));

app.Run();

0 comments on commit 2bd3453

Please sign in to comment.