docs/platform/infrastructure/import-gcs-bucket.md
When deploying to your own cloud, Encore Cloud provisions the infrastructure backing your object storage buckets automatically. If you already have a GCP Cloud Storage bucket, you can instead connect an Encore bucket directly to that existing bucket.
<Callout type="important">The Infrastructure page only lists resources after they've been provisioned. This means importing replaces a bucket that Encore has already provisioned — deploy your application first so the bucket appears, then import it to point at your existing Cloud Storage bucket.
</Callout>Using an existing Cloud Storage bucket allows you to:
import { Bucket } from "encore.dev/storage/objects";
export const profilePictures = new Bucket("profile-pictures");
var ProfilePictures = objects.NewBucket("profile-pictures", objects.BucketConfig{})
Importing creates a proposed infrastructure change. Review it in the pending changes summary and click Deploy to apply it. On the next deploy, Encore Cloud switches your bucket to the existing Cloud Storage bucket, replacing the bucket it previously provisioned.
<Callout type="info">If the resource can't be resolved, double-check the project and bucket name, and that Encore has permission to view the bucket in the selected GCP account.
</Callout>