move compartment to oci.main.tf

This commit is contained in:
bdeshi 2024-05-24 16:10:19 +06:00
parent cec420ab0e
commit 7b69d6f45b
Signed by: bdeshi
GPG Key ID: 410D03DA9A3468E0
2 changed files with 7 additions and 8 deletions

View File

@ -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"])

7
oci.main.tf Normal file
View File

@ -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
}