Skip to content

Commit c8be2c6

Browse files
authored
added root_compartment_id (#11)
1 parent fe2c263 commit c8be2c6

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10+
== v1.0.10 (August 5,2020)
11+
12+
=== Changes
13+
* tenancy id is needed for list of ADs (#10)
14+
1015
== v1.0.9 (August 5,2020)
1116

1217
=== Changes

datasources.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33

44
data "oci_identity_availability_domains" "ad_list" {
5-
compartment_id = var.tenancy_id
5+
compartment_id = var.root_compartment_id
66
}
77

88
data "template_file" "ad_names" {
@@ -11,7 +11,7 @@ data "template_file" "ad_names" {
1111
}
1212

1313
data "oci_identity_tenancy" "tenancy" {
14-
tenancy_id = var.tenancy_id
14+
tenancy_id = var.root_compartment_id
1515
}
1616

1717
# get the tenancy's home region

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ variable "label_prefix" {
4545
default = "none"
4646
}
4747

48+
variable "root_compartment_id" {
49+
# specify a different name so it can be used in resource manager
50+
description = "tenancy id where to create the sources"
51+
type = string
52+
}
53+
4854
# network parameters
4955

5056
variable "availability_domain" {

0 commit comments

Comments
 (0)