Skip to content

tf-cloud-modules/terraform-aiven-redis

Repository files navigation

Aiven Redis Terraform module

Terraform module which creates Aiven Redis resources

Usage

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

Requirements

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

Providers

Name Version
aiven 3.4.0

Modules

No modules.

Resources

Name Type
aiven_redis.this resource

Inputs

Name Description Type Default Required
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
ip_filter_object Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. list(any)
[
{
"network": "0.0.0.0/0"
}
]
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
migration Migrate data from existing server. list(any) [] no
plan Defines what kind of computing resources are allocated for the service. string "hobbyist" 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
private_access_redis Allow clients to connect to redis with a DNS name that always resolves to the service's private IP addresses. bool false no
privatelink_access_prometheus Enable prometheus. bool false no
privatelink_access_redis Enable redis. bool false no
project Aiven Cloud Project Name string n/a yes
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_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
public_access_redis Allow clients to connect to redis from the public internet for service nodes that are in a project VPC or another type of private network. bool false no
recovery_basebackup_name Name of the basebackup to restore in forked service. string "" no
redis_acl_channels_default Default ACL for pub/sub channels used when Redis user is created. string "" no
redis_io_threads Redis IO thread count. number null no
redis_lfu_decay_time LFU maxmemory-policy counter decay time in minutes. string "1" no
redis_lfu_log_factor Counter logarithm factor for volatile-lfu and allkeys-lfu maxmemory-policies. string "10" no
redis_maxmemory_policy Redis maxmemory-policy. string "volatile-ttl" no
redis_notify_keyspace_events Set notify-keyspace-events option. string "" no
redis_number_of_databases Number of redis databases. number null no
redis_persistence Redis persistence. string "" no
redis_pubsub_client_output_buffer_limit Pub/sub client output buffer hard limit in MB. number null no
redis_ssl Enable Redis SSL. bool false no
redis_timeout Redis idle connection timeout. string "0" 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
static_ips Static IPs that are going to be associated with this service. list(string) [] no
tags List of the service tags. list(any) [] no
termination_protection Prevents the service from being deleted. bool false 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 The disk space 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.
plan Defines what kind of computing resources are allocated for the service.
project Aiven Cloud Project Name.
redis Redis server provided values.
redis_user_config Redis user configurable settings.
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.