Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import existing Oracle Cloud Object Storage bucket failed #79

Open
davidkhala opened this issue Feb 3, 2023 · 2 comments
Open

Import existing Oracle Cloud Object Storage bucket failed #79

davidkhala opened this issue Feb 3, 2023 · 2 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. customer/feedback Feedback from customers kind/bug Some behavior is incorrect or out of spec

Comments

@davidkhala
Copy link

What happened?

oci:ObjectStorage:Bucket (public):
    error: Preview failed: refreshing urn:pulumi:oci-typescript::oci-typescript::oci:ObjectStorage/bucket:Bucket::public: 1 error occurred:
        * can not marshal to path in request for field NamespaceName. Due to can not marshal a nil pointer

Expected Behavior

There should not be an error.

Steps to reproduce

const namespace = 'myNamespace'

const myBucket = new oci.objectstorage.Bucket("public", {
  compartmentId: compartmentId,
  namespace: namespace
}, {
  import: 'ocid1.bucket.oc1.ap-singapore-1....'
});

Then run pulumi up

Output of pulumi about

CLI          
Version      3.53.1
Go Version   go1.19.5
Go Compiler  gc

Plugins
NAME    VERSION
nodejs  unknown
oci     0.1.1

Host     
OS       darwin
Version  13.1
Arch     x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v16.15.0'

Current Stack: davidkhala/oci-typescript/oci-typescript

TYPE                                  URN
pulumi:pulumi:Stack                   urn:pulumi:oci-typescript::oci-typescript::pulumi:pulumi:Stack::oci-typescript-oci-typescript
pulumi:providers:oci                  urn:pulumi:oci-typescript::oci-typescript::pulumi:providers:oci::default_0_1_1
oci:Identity/compartment:Compartment  urn:pulumi:oci-typescript::oci-typescript::oci:Identity/compartment:Compartment::DavidLiuCompartment


Found no pending operations associated with oci-typescript

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/davidkhala
User           davidkhala
Organizations  davidkhala

Dependencies:
NAME            VERSION
@pulumi/oci     0.1.1
@pulumi/pulumi  3.33.2
@types/node     17.0.45

Pulumi locates its logs in /var/folders/zf/zjyf4bds3k7ctrwg68rrl0kr0000gn/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@davidkhala davidkhala added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 3, 2023
@davidkhala
Copy link
Author

davidkhala commented Feb 3, 2023

I believe there is a different understandings on what should be the id of a Oracle Cloud bucket, I find this issue can be fixed by using

{
  import:'n/myNamespace/b/myBucketname'
}

But as an Oracle employee, the first concept in my mind about a resource id is the OCID. OCID format of a bucket is

ocid1.bucket.oc1.ap-singapore-1....

It is more intuitive and easy to get in OCI web console in tab Bucket Infomation with one-click copy.

image

@aq17 aq17 added customer/feedback Feedback from customers kind/enhancement Improvements or new features and removed kind/bug Some behavior is incorrect or out of spec labels Feb 4, 2023
@AaronFriel
Copy link
Contributor

Hey @davidkhala thanks for this, we're going to flag this as a feature request because this provider's behavior is dependent on the upstream provider we're bridging.

@AaronFriel AaronFriel added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed needs-triage Needs attention from the triage team labels Feb 4, 2023
@iwahbe iwahbe added blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec and removed kind/enhancement Improvements or new features labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. customer/feedback Feedback from customers kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants