Skip to content

can not marshal to path in request for field NamespaceName. Due to can not marshal a nil pointer #2429

@eugsim1

Description

@eugsim1

Hello
I m trying to import a bucket can you please help with the error ?

terraform import oci_objectstorage_bucket.mushop-media-dr "NAMESPACE/mushop-media-dr" and i m getting the below error :

data.oci_objectstorage_namespace.ns: Reading...
data.oci_objectstorage_namespace.ns: Read complete after 0s [id=ObjectStorageNamespaceDataSource-0]
oci_objectstorage_bucket.mushop-media-dr: Importing from ID "XXXX/mushop-media-dr"...
oci_objectstorage_bucket.mushop-media-dr: Import prepared!
  Prepared oci_objectstorage_bucket for import
oci_objectstorage_bucket.mushop-media-dr: Refreshing state... [id=XXXX/mushop-media-dr]
╷
│ Error: can not marshal to path in request for field NamespaceName. Due to can not marshal a nil pointer

[oracle@cloud-dev1 terraform_project]$ terraform init
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of oracle/oci from the dependency lock file
- Using previously-installed oracle/oci v7.13.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
[oracle@cloud-dev1 terraform_project]$ terraform providers

Providers required by configuration:
.
└── provider[registry.terraform.io/oracle/oci] >= 5.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions