joaocc / terraform-aiven-postgresql

Aiven PostgreSQL Terraform module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aiven PostgreSQL Terraform module

Terraform module which creates Aiven PostgreSQL resources

Usage

module "postgresql" {
  source       = "tf-cloud-modules/postgresql/aiven"
  project      = "test"
  service_name = "test"
}

Requirements

Name Version
terraform >= 0.13.1
aiven >= 4.0.0, < 5.0.0

Providers

Name Version
aiven 4.1.3

Modules

No modules.

Resources

Name Type
aiven_pg.this resource

Inputs

Name Description Type Default Required
autodb_idle_timeout autodb_idle_timeout number null no
autodb_max_db_connections autodb_max_db_connections number null no
autodb_pool_mode autodb_pool_mode string "" no
autodb_pool_size autodb_pool_size number null no
autovacuum_analyze_scale_factor autovacuum_analyze_scale_factor number null no
autovacuum_analyze_threshold autovacuum_analyze_threshold number null no
autovacuum_freeze_max_age autovacuum_freeze_max_age number null no
autovacuum_max_workers autovacuum_max_workers number null no
autovacuum_naptime autovacuum_naptime number null no
autovacuum_vacuum_cost_delay autovacuum_vacuum_cost_delay number null no
autovacuum_vacuum_cost_limit autovacuum_vacuum_cost_limit number null no
autovacuum_vacuum_scale_factor autovacuum_vacuum_scale_factor number null no
autovacuum_vacuum_threshold autovacuum_vacuum_threshold number null no
bgwriter_delay bgwriter_delay number null no
bgwriter_flush_after bgwriter_flush_after number null no
bgwriter_lru_maxpages bgwriter_lru_maxpages number null no
bgwriter_lru_multiplier bgwriter_lru_multiplier number null no
cloud_name Defines where the cloud provider and region where the service is hosted in. string "aws-us-east-1" no
create Controls if resources should be created. bool true no
deadlock_timeout deadlock_timeout number null no
default_toast_compression default_toast_compression string "" no
enable_ipv6 Enable IPv6. string "false" no
idle_in_transaction_session_timeout idle_in_transaction_session_timeout number null no
ignore_startup_parameters ignore_startup_parameters list(string) [] no
ip_filter IP filter. list(string)
[
"0.0.0.0/0"
]
no
jit jit bool null no
log_autovacuum_min_duration log_autovacuum_min_duration number null no
log_error_verbosity log_error_verbosity string "" no
log_line_prefix log_line_prefix string "" no
log_min_duration_statement log_min_duration_statement number null no
maintenance_window_dow Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc. string "thursday" no
maintenance_window_time Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format. string "01:00:00" no
max_background_workers timescaledb.max_background_workers number null no
max_failover_replication_time_lag max_failover_replication_time_lag number null no
max_files_per_process max_files_per_process number null no
max_locks_per_transaction max_locks_per_transaction number null no
max_logical_replication_workers max_logical_replication_workers number null no
max_parallel_workers max_parallel_workers number null no
max_parallel_workers_per_gather max_parallel_workers_per_gather number null no
max_pred_locks_per_transaction max_pred_locks_per_transaction number null no
max_prepared_transactions max_prepared_transactions number null no
max_replication_slots max_replication_slots number null no
max_slot_wal_keep_size max_slot_wal_keep_size number null no
max_stack_depth max_stack_depth number null no
max_standby_archive_delay max_standby_archive_delay number null no
max_standby_streaming_delay max_standby_streaming_delay number null no
max_wal_senders max_wal_senders number null no
max_worker_processes max_worker_processes number null no
migration Migrate data from existing server. list(any) [] no
min_pool_size min_pool_size number null no
pg_partman_bgw__dot__interval pg_partman_bgw__dot__interval number null no
pg_partman_bgw__dot__role n/a string "" no
pg_stat_statements__dot__track pg_stat_statements__dot__track string "" no
pg_version PostgreSQL major version. string "14" no
plan Defines what kind of computing resources are allocated for the service. string "startup-4" no
private_access_pg Allow clients to connect to pg with a DNS name that always resolves to the service's private IP addresses. bool false no
private_access_pgbouncer Allow clients to connect to pgbouncer with a DNS name that always resolves to the service's private IP addresses. bool false no
private_access_prometheus Allow clients to connect to prometheus with a DNS name that always resolves to the service's private IP addresses. bool false no
privatelink_pg Enable pg. bool false no
privatelink_pgbouncer Enable pgbouncer. bool false no
privatelink_prometheus Enable prometheus. bool false no
project Aiven Cloud Project Name string n/a yes
project_to_fork_from Name of another project to fork a service from. string "" no
project_vpc_id Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. string null no
public_access_pg Allow clients to connect to pg from the public internet for service nodes that are in a project VPC or another type of private network. bool false no
public_access_pgbouncer Allow clients to connect to pgbouncer from the public internet for service nodes that are in a project VPC or another type of private network. bool false no
public_access_prometheus Allow clients to connect to prometheus from the public internet for service nodes that are in a project VPC or another type of private network. bool false no
recovery_target_time Recovery target time when forking a service. string "" no
server_idle_timeout server_idle_timeout number null no
server_lifetime server_lifetime number null no
server_reset_query_always server_reset_query_always bool null no
service_integrations List of the service integrations. list(any) [] no
service_name Specifies the actual name of the service. string n/a yes
service_to_fork_from Name of another service to fork from. string "" no
shared_buffers_percentage shared_buffers_percentage. number null no
static_ips Static IPs that are going to be associated with this service. list(string) [] no
synchronous_replication Synchronous replication type. string "" no
tags List of the service tags. list(any) [] no
temp_file_limit temp_file_limit number null no
termination_protection Prevents the service from being deleted. bool false no
timezone timezone string "" no
track_activity_query_size track_activity_query_size number null no
track_commit_timestamp track_commit_timestamp string "" no
track_functions track_functions string "" no
track_io_timing track_io_timing string "" no
variant Variant of the PostgreSQL service, may affect the features that are exposed by default. string "" no
wal_sender_timeout wal_sender_timeout number null no
wal_writer_delay wal_writer_delay number null no
work_mem work_mem number null no

Outputs

Name Description
cloud_name Defines where the cloud provider and region where the service is hosted in.
components Service component information objects.
disk_space_cap The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
disk_space_default The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
disk_space_step The default disk space step of the service, possible values depend on the service type, the cloud provider and the project.
id The ID of this resource.
maintenance_window_dow Day of week when maintenance operations should be performed.
maintenance_window_time Time of day when maintenance operations should be performed.
pg PostgreSQL specific server provided values.
pg_user_config Pg user configurable settings.
plan Defines what kind of computing resources are allocated for the service.
project Aiven Cloud Project Name.
service_host The hostname of the service.
service_integrations Service integrations to specify when creating a service.
service_name Specifies the actual name of the service.
service_password Password used for connecting to the service, if applicable.
service_port The port of the service.
service_type Aiven internal service type code.
service_uri URI for connecting to the service.
service_username Username used for connecting to the service.
static_ips Static IPs that are going to be associated with this service.

About

Aiven PostgreSQL Terraform module

License:Apache License 2.0


Languages

Language:HCL 100.0%