-
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.
XDR-3403: Add example code for azuread-service-principal (feat)
- Loading branch information
Gerard Setho
committed
May 25, 2022
1 parent
cae24b0
commit 07da8b4
Showing
1 changed file
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
terraform { | ||
required_version = ">= 0.12.26" | ||
required_providers { | ||
azuread = { | ||
source = "hashicorp/azuread" | ||
version = "2.22.0" | ||
} | ||
} | ||
} | ||
|
||
module "azuread_app" { | ||
source = "../../modules/azuread-application" | ||
name = "exampleadapplication" | ||
} | ||
|
||
module "azuread-service-principal" { | ||
source = "../../modules/azuread-service-principal" | ||
|
||
application_id = module.azuread_app.application_id | ||
} | ||
|
||
output "password" { | ||
value = module.azuread-service-principal.password | ||
sensitive = true | ||
} | ||
|
||
output "key_id" { | ||
value = module.azuread-service-principal.password_key_id | ||
} |