1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/terraform/azure/service-principal/main.tf
Moritz Johner 51532ca8a1
feat: add AKS e2e managed (#2811)
Migrate azure e2e tests to use the new TFC_* secrets which are
provisioned through external-secrets/infrastructure.
Also enable the use of `/ok-to-test-managed provider=azure` command
to run e2e managed tests that verify integration with AKS and
Azure Workload Identity (AZWI).

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
2023-10-29 21:51:39 +01:00

26 lines
852 B
HCL

resource "azuread_application" "current" {
display_name = var.application_display_name
owners = var.application_owners
}
resource "azuread_service_principal" "current" {
application_id = azuread_application.current.application_id
app_role_assignment_required = false
owners = var.application_owners
feature_tags {
enterprise = true
gallery = true
}
}
resource "azuread_service_principal_password" "current" {
service_principal_id = azuread_service_principal.current.id
}
resource "azuread_application_federated_identity_credential" "example" {
application_object_id = azuread_application.current.object_id
display_name = var.application_display_name
audiences = var.audiences
issuer = var.issuer
subject = var.subject
}