-
Notifications
You must be signed in to change notification settings - Fork 19
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
Missing docs for GCP ArtifactRegistry CleanupPolicy #966
Comments
Hi @adriangb; very sorry you didn't get any response in slack; there's a lot of activity there so sometimes questions slip through the cracks! Documentation for the resources in google-native is generated from the GCP discovery docs and is sometimes incomplete. You can generally try the Google Cloud API docs as a fallback. (Though I see from your example in the thread you probably already looked there.) It looks like our primary GCP provider, If you do need to stick with google-native for this resource, you can get more detail on the error you're getting from the API by enabling verbose logging, which will usually show you the full request and response. Again, very sorry that you've run into a roadblock here! We know that these "preview" providers can sometimes be a pitfall and are working to try and clean up naming, docs, etc. to help avoid these frustrations! |
Yeah it seems like it's not the same schema / payload because what works with
That would require destroying and re-creating my artifact registry sadly.
I'll give it a shot 👍🏻
Is the Google Native provider still considered preview? |
Verbose logs were unfortunately not very helpful. All I see is:
Is there an example, a test, anything I can go off of? |
yes, this provider has never graduated to GA and active development is paused at this time.
Yes looks like Google returns roughly no information about what specifically is wrong with the input. :/
Not that I am aware of; there might be examples of raw API requests somewhere you could try to work off of, but I doubt there are any examples of setting CleanupPolicy with this provider
You should be able to import the state of the artifact from GCP with a program written against the pulumi-gcp provider: https://www.pulumi.com/docs/concepts/options/import/ |
Oh I didn’t know this. I thought this provider was the future. Do you recommend switching completely over to the other provider? |
yes, apologies that this is sometimes unclear in the docs, but for now we would encourage you to move completely to the pulumi-gcp provider for most projects (an certainly for any production work). There are some fundamental limitations the API documentation for GCP that we're hoping to work out with google before we can reinvest in the native provider. |
It's currently a string (I assume JSON?) but there are zero docs or examples on what the contents are supposed to be. I posted on Slack and have gotten no answers, which is disappointing for a paying customer.
Can anyone give a working example of using cleanupPolicy with ArtifactRegistry on the GCP "native" SDK? It's currently a map of strings to strings and the schema for the string is not specified anywhere. I get that the feature is experimental and using a string avoids breaking changes in the typescript sense but at least some examples or a schema for the string should be provided in these cases. I've tried the same JSON that is accepted by calling Google APIs directly and I've tried the output of
console.log
forgetRepository
but neither work.It was introduced in #935.
The text was updated successfully, but these errors were encountered: