A Postgres Instance in reader/writer datastore mode for cloudsql postgres.
Property | Type | Required | Description |
---|---|---|---|
postgres_version |
string | Yes | Version of Postgres e.g. 12.11 |
size |
object | Yes | Sizing attribute for postgres writer and reader instance |
Use the following link to configure the advanced configuration for the Postgres Cloudsql module to invoke additional feature.
"advanced": {
"cloudsql": {
"postgres": {
}
}
}
"advanced": {
"cloudsql": {
"postgres": {
"reader_zone" : {
"reader-0" : "asia-south1-b",
"reader-1" : "asia-south1-c"
}
}
}
}
flag*
with your desired flag name.
"advanced": {
"cloudsql": {
"postgres": {
"database_flags": {
"flag1": {
"name" : "pg_stat_statements.save",
"value" : "true"
},
"flag2": {
"name" : "pg_stat_statements.max",
"value" : "300"
}
}
}
}
}
additional_users
& additional_databases
respectively.
"advanced": {
"cloudsql": {
"postgres": {
"additional_users": {
"user1": {
"name": "tester-1",
"password": "postgres"
},
"user2": {
"name": "tester-2",
"password": "postgres"
}
},
"additional_databases": {
"db1": {
"name": "additional-test-db"
},
"db2": {
"name": "additional-test-db-2"
}
}
}
}
}