From b80e91fdd23f382491763d3c8bc5da39dced82fb Mon Sep 17 00:00:00 2001 From: Van Thong Nguyen Date: Tue, 6 Apr 2021 16:27:28 +0200 Subject: [PATCH] add new postgres resource example --- postgresql/postgres.tf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 postgresql/postgres.tf diff --git a/postgresql/postgres.tf b/postgresql/postgres.tf new file mode 100644 index 0000000..c18593b --- /dev/null +++ b/postgresql/postgres.tf @@ -0,0 +1,19 @@ +terraform { + required_providers { + gridscale = { + source = "gridscale/gridscale" + version = "~> 1.9.0" + } + } +} + +resource "gridscale_postgresql" "terra-postgres-test" { + name = "test" + # The PostgreSQL release of this instance. For convenience, please use gscloud (https://github.com/gridscale/gscloud) to get the list of available postgreSQL service releases. + release = "13" + # Performance class of postgreSQL service. Available performance classes at the time of writing: `standard`, `high`, `insane`, `ultra`. + performance_class = "standard" + # Maximum CPU core count. The PostgreSQL instance's CPU core count will be autoscaled based on the workload. + # The number of cores stays between 1 and `max_core_count`. + max_core_count = 20 +} \ No newline at end of file