generated from pagopa-archive/template-devops-azure
-
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.
feat: Added workload identity into ecommerce (#362)
* added skip_provider_registration to avoid problems with terraform * added skip_provider_registration to avoid problems with terraform * added data for service connection workload identity * changed service connection with workload identity
- Loading branch information
1 parent
c439ecf
commit 1169c26
Showing
13 changed files
with
168 additions
and
100 deletions.
There are no files selected for viewing
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
39 changes: 39 additions & 0 deletions
39
azure-devops/ecommerce/00_service_connections_docker_workload_identity.tf
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,39 @@ | ||
### ⚠️ the workload identities was created manually because there are a problem | ||
### with the provider and the docker@2 plugin for azdo | ||
|
||
# | ||
# 🇪🇺 WEU | ||
# | ||
data "azuredevops_serviceendpoint_azurecr" "dev_weu_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_weu_service_connection_workload_identity_dev | ||
} | ||
|
||
data "azuredevops_serviceendpoint_azurecr" "uat_weu_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_weu_service_connection_workload_identity_uat | ||
} | ||
|
||
data "azuredevops_serviceendpoint_azurecr" "prod_weu_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_weu_service_connection_workload_identity_prod | ||
} | ||
|
||
# | ||
# 🇮🇹 Italy Workload identity | ||
# | ||
|
||
data "azuredevops_serviceendpoint_azurecr" "dev_ita_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_ita_service_connection_workload_identity_dev | ||
} | ||
|
||
data "azuredevops_serviceendpoint_azurecr" "uat_ita_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_ita_service_connection_workload_identity_uat | ||
} | ||
|
||
data "azuredevops_serviceendpoint_azurecr" "prod_ita_workload_identity" { | ||
project_id = data.azuredevops_project.project.id | ||
service_endpoint_name = var.acr_ita_service_connection_workload_identity_prod | ||
} |
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
Oops, something went wrong.