Closed timharek closed 1 month ago
Hi @timharek. It looks like the resource is hitting the wrong URL.
Post "https://-run.googleapis.com/apis/serving.knative.dev/v1/namespaces/value-tech-integrations/services?alt=json": tls: failed to verify certificate: x509: ...
I imagine that it should be hitting run.googleapis.com
, not -run.googleapis.com
. Can you try using location
(since it has a default value) instead of cfg.Get("location")
?
service, err := cloudrun.NewService(ctx, "contracting-works-24-staging", &cloudrun.ServiceArgs{
- Location: pulumi.String(cfg.Get("location")),
+ Location: pulumi.String(location),
Template: cloudrun.ServiceTemplateArgs{
Spec: cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
cloudrun.ServiceTemplateSpecContainerArgs{
Image: image.ImageName,
},
},
},
},
})
That error combined with templating like 👇 could produce this kind of error:
google-beta/transport/config.go
527: CloudRunBasePathKey: "https://{{location}}-run.googleapis.com/",
Thank you! That was the issue 🤘
Describe what happened
I'm trying to create a new Cloud Run service based on a newly created and pushed Docker-image to Artifact Registry, but I get an error telling me that there was an error when creating the service.
Sample program
Log output
Affected Resource(s)
No response
Output of
pulumi about
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).