Closed 0xJem closed 11 months ago
Ah, the difference is that the Firebase Hosting configuration via Cloud Run is a redirect, not a rewrite, and that causes problems with CORS.
The error message strongly implies it's a Google-side issue. But also, HostingVersion is a beta resource and may still be under active development. Anyway, I don't expect the issue can be fixed on Pulumi side...
@mikhailshilkov thanks for the clarification. I'll see if I can debug the API calls and report them to Google.
Turns out that the rewrite should refer to the name
property instead of the id
. Fixed!
What happened?
I have a Cloud Run service set up in
us-central
(gcp:region
is set to this in the stack's definition file and exposed throughgcpConfig.require("region")
, which I can access directly and works fine.I have Firebase hosting setup to do a rewrite to the Cloud Run instance.
When I deploy the Firebase HostingVersion, I receive this error:
Example
Cloud Run definition:
Firebase HostingVersion definition:
Output of
pulumi about
Additional context
I wasn't sure if this was an underlying GCP or API issue, so I tried to enable firebase hosting via the Cloud Run admin interface. When I added a unique site id (i.e. not one created using Pulumi), it worked.
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).