generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from pagopa/infra
Infra
- Loading branch information
Showing
31 changed files
with
656 additions
and
2,389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,10 @@ jobs: | |
- name: Formatting | ||
id: format | ||
continue-on-error: true | ||
uses: axel-op/googlejavaformat-action@v3 | ||
uses: findologic/intellij-format-action@main | ||
with: | ||
args: "--set-exit-if-changed" | ||
path: . | ||
fail-on-changes: false | ||
|
||
- uses: actions/[email protected] | ||
if: steps.format.outcome != 'success' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,5 @@ hs_err_pid* | |
/helm/charts/* | ||
|
||
.identity/.terraform/* | ||
**/.terraform.lock.hcl | ||
**/.terraform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
locals { | ||
display_name = "API Config Selfcare Integration" | ||
description = "Management APIs to configure pagoPA for Selfcare" | ||
host = "api.${var.apim_dns_zone_prefix}.${var.external_domain}" | ||
hostname = var.env == "prod" ? "weuprod.apiconfig.internal.platform.pagopa.it" : "weu${var.env}.apiconfig.internal.${var.env}.platform.pagopa.it" | ||
} | ||
|
||
resource "azurerm_api_management_group" "api_apiconfig_selfcare_integration_group" { | ||
name = local.apim.product_id | ||
resource_group_name = local.apim.rg | ||
api_management_name = local.apim.name | ||
display_name = local.display_name | ||
description = local.description | ||
} | ||
|
||
resource "azurerm_api_management_api_version_set" "apiconfig_selfcare_integration_api" { | ||
name = format("%s-apiconfig-selfcare-integration-api", var.env_short) | ||
resource_group_name = local.apim.rg | ||
api_management_name = local.apim.name | ||
display_name = local.display_name | ||
versioning_scheme = "Segment" | ||
} | ||
|
||
module "apim_apiconfig_selfcare_integration_api_v1" { | ||
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api?ref=v6.7.0" | ||
|
||
name = format("%s-apiconfig-selfcare-integration-api", var.env_short) | ||
api_management_name = local.apim.name | ||
resource_group_name = local.apim.rg | ||
product_ids = [local.apim.product_id] | ||
subscription_required = true | ||
|
||
version_set_id = azurerm_api_management_api_version_set.apiconfig_selfcare_integration_api.id | ||
api_version = "v1" | ||
|
||
description = local.description | ||
display_name = local.display_name | ||
path = "apiconfig-selfcare-integration" | ||
protocols = ["https"] | ||
|
||
service_url = null | ||
|
||
content_format = "openapi" | ||
content_value = templatefile("../openapi/openapi.json", { | ||
host = local.host | ||
}) | ||
|
||
xml_content = templatefile("./policy/_base_policy.xml", { | ||
hostname = local.hostname | ||
}) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
locals { | ||
product = "${var.prefix}-${var.env_short}" | ||
|
||
apim = { | ||
name = "${local.product}-apim" | ||
rg = "${local.product}-api-rg" | ||
product_id = "apiconfig-selfcare-integration" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = ">= 3.30.0" | ||
} | ||
azuread = { | ||
source = "hashicorp/azuread" | ||
version = "2.30.0" | ||
} | ||
azapi = { | ||
source = "Azure/azapi" | ||
version = "= 1.3.0" | ||
} | ||
} | ||
|
||
backend "azurerm" {} | ||
} | ||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
provider "azapi" {} | ||
|
||
data "azurerm_subscription" "current" {} | ||
|
||
data "azurerm_client_config" "current" {} |
Oops, something went wrong.