Total Page Preview:   000000004175

How to create a PostGres instance using cloudshell in gcp?

In this article I am going to explain how to PostGres instance list in google cloud(gcp) cloudshell command.

 

Syntax 

gcloud sql instances create [INSTANCE_NAME] \
--database-version=[DATABASE_VERSION] --cpu=2 --memory=8GiB\
--region=[REGION] --root-password=[password123]

Where:

--database-version = POSTGRES_9_6, POSTGRES_10, POSTGRES_11

--region = REGION; default="us-central"  More

 

Example

 gcloud sql instances create prod-instance \
--database-version=POSTGRES_9_6 --cpu=2 --memory=8GiB \
--region=us-central1 --root-password=[password123]

 

OUTPUT

Creating Cloud SQL instance...done.
Created [https://sqladmin.googleapis.com/sql/v1beta4/projects/hipaaprojects/instances/prod-instance].
 

 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments