Change Prisma endpoint on existing project?

prisma-cloud
prisma

#1

When creating a project you can use prisma init to initialize the project and set the configuration variables in .env or the prisma.yml.

So how do you switch to a new Prisma cluster? I’m asking as I’m trialling Prisma Cloud.

What I’ve done so far:

prisma delete - to remove the old service from Prisma

Edited the .env file to change PRISMA_ENDPOINT and PRISMA_CLUSTER

PRISMA_ENDPOINT="https://cluster-name.my-account-name.prisma.sh/service-name-in-prisma.yml-file/dev"
PRISMA_CLUSTER="my-account-name/cluster-name"

Then I would run

prisma deploy


#2

Same question. I’d like to change from using local cluster to the shared Prisma Cloud, but can’t get back to the cluster menu in prisma deploy

EDIT: Found it - need to remove the cluster property in prisma.yml


#3

prisma delete - to remove the old service from Prisma

Edited the .env file to change PRISMA_ENDPOINT and PRISMA_CLUSTER

PRISMA_ENDPOINT="https://cluster-name.my-account-name.prisma.sh/service-name-in-prisma.yml-file/dev"
PRISMA_CLUSTER="my-account-name/cluster-name"
Then I would run

prisma deploy