postgres
dtoch56/postgres/yandex
Terraform Module for Yandex.Cloud Managed Service for PostgreSQL
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 | |--------------------------------------------------------------------------------------------------------------------------------------|--
| Name | Type | Description | Default |
|---|---|---|---|
| folder_id | string | The ID of the folder that the PostrgreSQL cluster belongs to. | required |
| postgres_databases | map(object({ user = st | Databases to create in Managed Service for PostgreSQL | required |
| subnet_id | string | The ID of the subnet, to which the host belongs. The subnet must be a part of th | required |
| zone | string | The availability zone where the PostgreSQL host will be created. | required |
| postgres_version | number | Version of the PostgreSQL cluster. | required |
| host_master_name | string | It sets name of master host. It works only when host.name is set. | required |
| network_id | string | ID of the network, to which the PostgreSQL cluster belongs. | required |
| host_name | string | Host replication source name points to host's name from which this host should r | required |
| name | string | Name of the PostgreSQL cluster. Provided by the client when the cluster is creat | required |
| security_group_ids | set(string) | A set of ids of security groups assigned to hosts of the cluster. | null |
| description | string | Description of the PostgreSQL cluster. | null |
| disk_type_id | string | Type of the storage of PostgreSQL hosts. | "network-ssd" |
| maintenance_window_type | string | Type of maintenance window. Can be either ANYTIME or WEEKLY. | "WEEKLY" |
| postgres_resources_prefix | string | "psql-" | |
| labels | map(string) | A set of key/value label pairs to assign to the PostgreSQL cluster. | {} |
| autofailover | bool | Configuration setting which enables/disables autofailover in cluster. | true |
| whitelist_ips | list(string) | List of IPs to access PostgreSQL cluster | [] |
| service_account_id | string | ID of existing service account to be used for provisioning Compute Cloud and VPC | null |
| backup_hour | number | The hour at which backup will be started (UTC). | 1 |
| performance_diagnostics_enabled | bool | Enable performance diagnostics | false |
| performance_diagnostics_sessions_sampling_interval | number | Interval (in seconds) for pg_stat_activity sampling Acceptable values are 1 to 8 | null |
| service_account_name | string | Name of service account to create to be used for provisioning Compute Cloud and | null |
| environment | string | Deployment environment of the PostgreSQL cluster (PRODUCTION or PRESTABLE) | "PRODUCTION" |
| backup_retain_period_days | number | The period in days during which backups are stored. | 7 |
| access_web_sql | bool | Allow access for SQL queries in the management console | false |
| backup_minutes | number | The minute at which backup will be started (UTC). | 0 |
| maintenance_window_hour | number | Hour of the day in UTC (in HH format). Allowed value is between 1 and 24. | 3 |
| maintenance_window_day | string | Day of the week (in DDD format). Allowed values: MON, TUE, WED, THU, FRI, SAT, S | "SUN" |
| assign_public_ip | bool | Sets whether the host should get a public IP address on creation. It can be chan | false |
cluster_id — ID of a new PostgreSQL cluster.service_account_id — ID of service account used for provisioning PostgreSQL cluster
hosts — PostgreSQL hosts