https://pulumi.com logo
#python
Title
a

aloof-jelly-80665

07/21/2021, 8:36 PM
Working with Google Artifact Registry, I am having trouble finding an example of initializing a google_beta provider in Python. All the examples I find reference a
google_beta
variable, but I can’t find an instantiation of it.
Could it be just pulumi_gcp.provider.Provider(…)?
I figured it out.. .google_beta = gcp.provider.Provider(resource_name=“google-beta”, project=“…”) but my real problem was that
*ERROR:* (gcloud.artifacts.repositories.create) Names may only contain lowercase letters, numbers, and hyphens, and must begin with a letter and end with a letter or number.
was only presented with
400 Invalid argument
so I wasted plenty of time on that
g

gentle-diamond-70147

07/26/2021, 10:28 PM
Hi Amir, sorry for the trouble you had figuring out the root cause of your error. We have a github issue at https://github.com/pulumi/pulumi-gcp/issues/338 to make more of the error message available. Would you mind adding your use case (artifact repository) to that issue too?
a

aloof-jelly-80665

07/27/2021, 1:02 PM
27 Views