From 7b69d6f45b408bba67fd8cee5453d6bf1de5b621 Mon Sep 17 00:00:00 2001 From: bdeshi Date: Fri, 24 May 2024 16:10:19 +0600 Subject: [PATCH] move compartment to oci.main.tf --- oci.identity.tf | 8 -------- oci.main.tf | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 oci.main.tf diff --git a/oci.identity.tf b/oci.identity.tf index b740c5f..8eed18c 100644 --- a/oci.identity.tf +++ b/oci.identity.tf @@ -1,11 +1,3 @@ -resource "oci_identity_compartment" "compartment" { - compartment_id = var.tenancy_id - name = join("", [var.prefix, "compartment"]) - description = local.common_description - enable_delete = true - freeform_tags = local.freeform_tags -} - resource "oci_identity_group" "administrators" { compartment_id = var.tenancy_id name = join("", [var.prefix, "administrators"]) diff --git a/oci.main.tf b/oci.main.tf new file mode 100644 index 0000000..e5be69a --- /dev/null +++ b/oci.main.tf @@ -0,0 +1,7 @@ +resource "oci_identity_compartment" "compartment" { + compartment_id = var.tenancy_id + name = join("", [var.prefix, "compartment"]) + description = local.common_description + enable_delete = true + freeform_tags = local.freeform_tags +}