Skip to content
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

Make firebase init for FDC work better with Spark projects. #7666

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

rosalyntan
Copy link
Member

@rosalyntan rosalyntan commented Sep 17, 2024

Description

For projects without billing enabled, do not enable the compute.googleapis.com API nor provision a CloudSQL instance during firebase init.

Scenarios Tested

  • firebase init with Spark project
  • firebase init with Blaze project

Sample Commands

firebase init with Spark project
Screenshot 2024-09-17 at 11 10 34 AM

@rosalyntan rosalyntan marked this pull request as ready for review September 17, 2024 18:22
const prefix = "dataconnect";
// These are the APIs that can be enabled without a billing account.
await ensure(projectId, api.dataconnectOrigin(), prefix);
await ensure(projectId, api.cloudSQLAdminOrigin(), prefix);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, TIL that this API doesn't require billing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was a little surprised by that haha

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

const prefix = "dataconnect";
// These are the APIs that can be enabled without a billing account.
await ensure(projectId, api.dataconnectOrigin(), prefix);
await ensure(projectId, api.cloudSQLAdminOrigin(), prefix);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@rosalyntan rosalyntan merged commit b88dc57 into master Sep 17, 2024
41 checks passed
@rosalyntan rosalyntan deleted the rosalyntan.spark branch September 17, 2024 19:01
rosalyntan added a commit that referenced this pull request Sep 17, 2024
rosalyntan added a commit that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants