-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iam] introduce iam_compartmen_id which define the top parent compart…
…ment for IAM resources when not at tenancy level Signed-off-by: Thomas Pham <[email protected]>
- Loading branch information
Showing
9 changed files
with
134 additions
and
27 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
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,26 @@ | ||
# Copyright (c) 2022, 2023 Oracle Corporation and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl | ||
|
||
locals { | ||
identity_domain_name = coalesce(var.identity_domain_name, "Default" ) | ||
isDefaultIdentityDomain = local.identity_domain_name == "Default" ? true : false | ||
} | ||
|
||
data "oci_identity_domains" "domains" { | ||
count = local.isDefaultIdentityDomain ? 0 : 1 | ||
|
||
#Required | ||
compartment_id = var.tenancy_id # dynamic groups exist in the parent compartment. | ||
|
||
#Optional | ||
display_name = var.identity_domain_name | ||
#home_region_url = var.domain_home_region_url ## TODO: provide the home region | ||
#is_hidden_on_login = var.domain_is_hidden_on_login | ||
#license_type = var.domain_license_type | ||
#name = var.domain_name | ||
#state = var.domain_state | ||
#type = var.domain_type | ||
#url = var.domain_url | ||
|
||
provider = oci.home | ||
} |
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