Loading...
Loading...
### Terraform Version ```shell Terraform v1.12.1 on darwin_arm64 + provider registry.terraform.io/oracle/oci v7.2.0 ``` ### Terraform Configuration Files ```terraform resource "oci_identity_compartment" "test_compartment" { #Required compartment_id = var.compartment_id description = var.description name = "dev-tf" #Optional # defined_tags = {"Operations.CostCenter": "42"} freeform_tags = var.freeform_tags } import { to = oci_identity_compartment.test_compartment identity = { name = "dev-tf" } } ``` ### Debug Output ``` oci_identity_compartment.test_compartment: Preparing import... [identity=] Planning failed. Terraform encountered an error while generating this plan. ╷ │ Error: unknown identity type "oci_identity_compartment" │ │ ╵ ``` ### Expected Behavior Import by identity should work for oci like how it shown for aws in example https://github.com/hashicorp/terraform/blob/main/internal/terraform/testdata/import-identity-module/main.tf ### Actual Behavior resource type not exist. ### Steps to Reproduce 1. setup the oci terraform provider 2. try to import a compartment by identity ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.