Import an existing GCP project
Using your pre-existing GCP project instead of provisioning a new one
Overview
When deploying applications to your own cloud, Encore Cloud can provision all necessary infrastructure—including new GCP projects. However, if you already have a GCP project, you can deploy your Encore application directly to this existing project.
Benefits
Using an existing GCP project allows you to:
- Keep all your infrastructure in a single project
- Maintain existing IAM policies and permissions
- Utilize existing billing settings and quotas
- Consolidate resources for easier management
Importing a GCP project
Follow these steps to import your existing GCP project:
- Navigate to Create Environment in the Encore Cloud dashboard
- Select the GCP cloud provider
- Choose Import Project
- Add permissions for the Encore Service Account:
- Copy the
Encore GCP Service Account
from the cloud dashboard - Go to your project's IAM page in the GCP Console
- Grant the
Owner
role to theEncore GCP Service Account
- Copy the
- Return to the Encore Cloud dashboard
- Enter your
Project ID
- Click the
Resolve
button to validate the project
Once validated, you can create the environment. When you deploy to this environment, Encore Cloud will automatically deploy your application to your imported GCP project rather than provisioning a new one.