Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
f
full-dress-10026
05/17/2019, 7:36 PM
Can you create a Container Registry in GCP using Pulumi? I can't seem to find a resource that will do that.
It appears you can do this in Terraform:
https://www.terraform.io/docs/providers/google/d/google_container_registry_repository.html
b
billowy-garage-68819
05/17/2019, 7:48 PM
That's not a creation but a data reference object
f
full-dress-10026
05/17/2019, 7:52 PM
It appears that I can just push directly to the container registry without creating anything.
Still need a way to get the auth creds for the gcp registry.
w
white-balloon-205
05/17/2019, 11:06 PM
You can use
https://pulumi.io/reference/pkg/nodejs/@pulumi/gcp/container/#getRegistryRepository
to get the reporistory reference. I believe for credentials, GCP more or less requires that you install their credentials helper:
https://cloud.google.com/container-registry/docs/advanced-authentication
Post