-
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.
[DEVEX-50] Fix azure_federated_identity_with_github module (#12)
- Loading branch information
Showing
3 changed files
with
22 additions
and
28 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
38 changes: 16 additions & 22 deletions
38
infra/modules/azure_federated_identity_with_github/outputs.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 |
---|---|---|
@@ -1,31 +1,25 @@ | ||
output "federated_ci_identity" { | ||
value = { | ||
id = module.federated_ci_identity[0].identity_principal_id | ||
client_id = module.federated_ci_identity[0].identity_client_id | ||
name = module.federated_ci_identity[0].identity_app_name | ||
resource_group_name = module.federated_ci_identity[0].identity_resource_group | ||
} | ||
|
||
precondition { | ||
condition = var.continuos_integration.enable == true | ||
error_message = "Continuos Integration is not enabled" | ||
} | ||
value = try( | ||
{ | ||
id = module.federated_ci_identity[0].identity_principal_id | ||
client_id = module.federated_ci_identity[0].identity_client_id | ||
name = module.federated_ci_identity[0].identity_app_name | ||
resource_group_name = module.federated_ci_identity[0].identity_resource_group | ||
}, {} | ||
) | ||
|
||
description = "Data about the Continuos Integration managed identity created" | ||
} | ||
|
||
output "federated_cd_identity" { | ||
value = { | ||
id = module.federated_cd_identity[0].identity_principal_id | ||
client_id = module.federated_cd_identity[0].identity_client_id | ||
name = module.federated_cd_identity[0].identity_app_name | ||
resource_group_name = module.federated_cd_identity[0].identity_resource_group | ||
} | ||
|
||
precondition { | ||
condition = var.continuos_delivery.enable == true | ||
error_message = "Continuos Delivery is not enabled" | ||
} | ||
value = try( | ||
{ | ||
id = module.federated_cd_identity[0].identity_principal_id | ||
client_id = module.federated_cd_identity[0].identity_client_id | ||
name = module.federated_cd_identity[0].identity_app_name | ||
resource_group_name = module.federated_cd_identity[0].identity_resource_group | ||
}, {} | ||
) | ||
|
||
description = "Data about the Continuos Delivery managed identity created" | ||
} |
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