postgres

dtoch56/postgres/yandex

Terraform Module HCL YANDEX

Terraform Module for Yandex.Cloud Managed Service for PostgreSQL

Install
module "postgres" {
source = "dtoch56/postgres/yandex"
version = "0.0.1"
}
plain text: /constructs/tfmod-dtoch56-postgres-yandex/install.txt
⭐ Source on GitHub 📦 Registry page
README

Yandex.Cloud Managet PostgreSQL module Creates a Yandex Managed Service for PostgreSQL in Yandex.Cloud. Basic example To create an PostgreSQL cluster named my-psql in Yandex.Cloud folder with id xxx000xxx000xxx000xx: ``hcl module "postgres" { source = "dtoch56/postgres/yandex" cloud_id = "xxx000xxx000xxx000xx" folder_name = "my-psql" } `` Requirements | Name | Version | |-------------------------------------------------|---------| | terraform | >= 1.2 | Providers | Name | Version | |-----------------------------------------------------------------------------------------|---------| | yandex-cloud | >= 0.77 | Modules No modules. Resources | Name | Type | |--------------------------------------------------------------------------------------------------------------------------------------|--

Inputs (37)
NameTypeDescriptionDefault
folder_idstringThe ID of the folder that the PostrgreSQL cluster belongs to. required
postgres_databasesmap(object({ user = stDatabases to create in Managed Service for PostgreSQL required
subnet_idstringThe ID of the subnet, to which the host belongs. The subnet must be a part of th required
zonestringThe availability zone where the PostgreSQL host will be created. required
postgres_versionnumberVersion of the PostgreSQL cluster. required
host_master_namestringIt sets name of master host. It works only when host.name is set. required
network_idstringID of the network, to which the PostgreSQL cluster belongs. required
host_namestringHost replication source name points to host's name from which this host should r required
namestringName of the PostgreSQL cluster. Provided by the client when the cluster is creat required
security_group_idsset(string)A set of ids of security groups assigned to hosts of the cluster.null
descriptionstringDescription of the PostgreSQL cluster.null
disk_type_idstringType of the storage of PostgreSQL hosts."network-ssd"
maintenance_window_typestringType of maintenance window. Can be either ANYTIME or WEEKLY."WEEKLY"
postgres_resources_prefixstring"psql-"
labelsmap(string)A set of key/value label pairs to assign to the PostgreSQL cluster.{}
autofailoverboolConfiguration setting which enables/disables autofailover in cluster.true
whitelist_ipslist(string)List of IPs to access PostgreSQL cluster[]
service_account_idstringID of existing service account to be used for provisioning Compute Cloud and VPCnull
backup_hournumberThe hour at which backup will be started (UTC).1
performance_diagnostics_enabledboolEnable performance diagnosticsfalse
performance_diagnostics_sessions_sampling_intervalnumberInterval (in seconds) for pg_stat_activity sampling Acceptable values are 1 to 8null
service_account_namestringName of service account to create to be used for provisioning Compute Cloud and null
environmentstringDeployment environment of the PostgreSQL cluster (PRODUCTION or PRESTABLE)"PRODUCTION"
backup_retain_period_daysnumberThe period in days during which backups are stored.7
access_web_sqlboolAllow access for SQL queries in the management consolefalse
backup_minutesnumberThe minute at which backup will be started (UTC).0
maintenance_window_hournumberHour of the day in UTC (in HH format). Allowed value is between 1 and 24.3
maintenance_window_daystringDay of the week (in DDD format). Allowed values: MON, TUE, WED, THU, FRI, SAT, S"SUN"
assign_public_ipboolSets whether the host should get a public IP address on creation. It can be chanfalse
Outputs (3)
cluster_id — ID of a new PostgreSQL cluster.
service_account_id — ID of service account used for provisioning PostgreSQL cluster
hosts — PostgreSQL hosts
Resources (3)
yandex_iam_service_accountyandex_mdb_postgresql_clusteryandex_vpc_security_group
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud YANDEX
★ Stars0
Forks0
Total downloads18
Inputs37
Outputs3
Resources3
LicenseApache-2.0
Namespacedtoch56
Updated