Skip to content

Commit

Permalink
Merge pull request #7 from oracle-quickstart/lgabriel-oracle_tag-crea…
Browse files Browse the repository at this point in the history
…te-fix

Fix: Non-home region tag creation error
  • Loading branch information
lgabriel-oracle authored May 17, 2023
2 parents 85876a6 + e7c8857 commit 8c7ab3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,35 +162,41 @@ resource "oci_identity_policy" "HydrationAgentPolicy" {
}

resource "oci_identity_tag_namespace" "CloudMigrations" {
provider = oci.homeregion
name = "CloudMigrations"
description = "Used to track resources created by Oracle Cloud Migrations service."
compartment_id = var.tenancy_ocid
}

resource "oci_identity_tag" "ServiceUse" {
provider = oci.homeregion
name = "ServiceUse"
description = "Oracle Cloud Migrations service"
tag_namespace_id = oci_identity_tag_namespace.CloudMigrations.id
}

resource "oci_identity_tag" "SourceEnvironmentId" {
provider = oci.homeregion
name = "SourceEnvironmentId"
description = "Source Environment OCID"
tag_namespace_id = oci_identity_tag_namespace.CloudMigrations.id
}
resource "oci_identity_tag" "SourceEnvironmentType" {
provider = oci.homeregion
name = "SourceEnvironmentType"
description = "Source Environment Type"
tag_namespace_id = oci_identity_tag_namespace.CloudMigrations.id
}

resource "oci_identity_tag" "SourceAssetId" {
provider = oci.homeregion
name = "SourceAssetId"
description = "Asset Source OCID"
tag_namespace_id = oci_identity_tag_namespace.CloudMigrations.id
}

resource "oci_identity_tag" "MigrationProject" {
provider = oci.homeregion
name = "MigrationProject"
description = "Migration Project OCID"
tag_namespace_id = oci_identity_tag_namespace.CloudMigrations.id
Expand Down

0 comments on commit 8c7ab3c

Please sign in to comment.