This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,13 @@ data "oci_core_images" "InstanceImageOCID" {
1818 values = [" ^.*Oracle[^G]*$" ]
1919 regex = true
2020 }
21+ }
22+
23+ data "oci_identity_region_subscriptions" "home_region_subscriptions" {
24+ tenancy_id = var. tenancy_ocid
25+
26+ filter {
27+ name = " is_home_region"
28+ values = [true ]
29+ }
2130}
Original file line number Diff line number Diff line change @@ -7,4 +7,13 @@ provider "oci" {
77 fingerprint = var. fingerprint
88 private_key_path = var. private_key_path
99 region = var. region
10+ }
11+
12+ provider "oci" {
13+ alias = " homeregion"
14+ tenancy_ocid = var. tenancy_ocid
15+ user_ocid = var. user_ocid
16+ fingerprint = var. fingerprint
17+ private_key_path = var. private_key_path
18+ region = data. oci_identity_region_subscriptions . home_region_subscriptions . region_subscriptions [0 ]. region_name
1019}
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ resource "random_id" "tag" {
66}
77
88resource "oci_identity_tag_namespace" "ArchitectureCenterTagNamespace" {
9+ provider = oci. homeregion
910 compartment_id = var. compartment_ocid
1011 description = " ArchitectureCenterTagNamespace"
1112 name = " ArchitectureCenter\\ hub-spoke-network-${ random_id . tag . hex } "
@@ -16,6 +17,7 @@ resource "oci_identity_tag_namespace" "ArchitectureCenterTagNamespace" {
1617}
1718
1819resource "oci_identity_tag" "ArchitectureCenterTag" {
20+ provider = oci. homeregion
1921 description = " ArchitectureCenterTag"
2022 name = " release"
2123 tag_namespace_id = oci_identity_tag_namespace. ArchitectureCenterTagNamespace . id
@@ -26,7 +28,7 @@ resource "oci_identity_tag" "ArchitectureCenterTag" {
2628 }
2729
2830 provisioner "local-exec" {
29- command = " sleep 20 "
31+ command = " sleep 120 "
3032 }
3133
3234}
You can’t perform that action at this time.
0 commit comments