Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/init/features/frameworks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { API_VERSION } from "../../../gcp/frameworks";
import { FirebaseError } from "../../../error";
import { promptOnce } from "../../../prompt";
import { DEFAULT_REGION, ALLOWED_REGIONS } from "./constants";
import { ensure } from "../../../ensureApiEnabled";

const frameworksPollerOptions: Omit<poller.OperationPollerOptions, "operationResourceName"> = {
apiOrigin: frameworksOrigin,
Expand All @@ -24,6 +25,13 @@ const frameworksPollerOptions: Omit<poller.OperationPollerOptions, "operationRes
export async function doSetup(setup: any, projectId: string): Promise<void> {
setup.frameworks = {};

await Promise.all([
ensure(projectId, "cloudbuild.googleapis.com", "frameworks", true),
ensure(projectId, "secretmanager.googleapis.com", "frameworks", true),
ensure(projectId, "run.googleapis.com", "frameworks", true),
ensure(projectId, "artifactregistry.googleapis.com", "frameworks", true),
]);

logBullet("First we need a few details to create your backend.");

const location = await promptOnce({
Expand Down