Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scaleway-terraform-modules/terraform-scaleway-redis

Manage Redis cluster on Scaleway with Terraform.
https://github.com/scaleway-terraform-modules/terraform-scaleway-redis

redis scaleway scaleway-redis terraform-module

Last synced: 7 days ago
JSON representation

Manage Redis cluster on Scaleway with Terraform.

Awesome Lists containing this project

README

        

# Terraform / Scaleway

## Purpose

This repository is used to manage a Redis cluster on scaleway using terraform.

## Usage

- Setup the [scaleway provider](https://www.terraform.io/docs/providers/scaleway/index.html) in your tf file.
- Include this module in your tf file. Refer to [documentation](https://www.terraform.io/docs/modules/sources.html#generic-git-repository).

```hcl
module "my_cluster" {
source = "scaleway-terraform-modules/redis/scaleway"
version = "0.0.1"

}
```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement_terraform) | >= 0.13 |
| [scaleway](#requirement_scaleway) | >= 2.3.0 |

## Resources

| Name | Type |
|------|------|
| [scaleway_redis_cluster.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/redis_cluster) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [cluster_name](#input_cluster_name) | Name of the Redis Cluster. | `string` | n/a | yes |
| [user_name](#input_user_name) | Identifier for the first user of the Redis Cluster. | `string` | n/a | yes |
| [user_password](#input_user_password) | Password for the first user of the Redis Cluster. | `string` | n/a | yes |
| [cluster_size](#input_cluster_size) | Nnumber of nodes in the Redis Cluster. | `number` | `1` | no |
| [cluster_version](#input_cluster_version) | Redis's Cluster version (e.g. `6.2.6`). | `string` | `"7.0.5"` | no |
| [instance_type](#input_instance_type) | Type of Redis Cluster you want to create. | `string` | `"RED1-MICRO"` | no |
| [network_acls](#input_network_acls) | List of acl rules (ie IP addresses authorized to connect to the cluster). | ```list(object({ ip = string description = string }))``` | ```[ { "description": "Allow all", "ip": "0.0.0.0/0" } ]``` | no |
| [private_network](#input_private_network) | Describes the private network you want to connect to your cluster. If not set, a public network will be provided. | ```object({ id = string service_ips = list(string) })``` | `null` | no |
| [project_id](#input_project_id) | ID of the project the namespace is associated with. Ressource will be created in the project set at the provider level if null. | `string` | `null` | no |
| [tags](#input_tags) | Tags associated with the server and dedicated ip address. | `list(string)` | `[]` | no |
| [tls_enabled](#input_tls_enabled) | Whether TLS is enabled or not. | `bool` | `true` | no |
| [zone](#input_zone) | The zone in which the Redis Cluster should be created. Ressource will be created in the zone set at the provider level if null. | `string` | `null` | no |

## Outputs

| Name | Description |
|------|-------------|
| [cluster_certificate](#output_cluster_certificate) | PEM of the certificate used by redis. |
| [cluster_id](#output_cluster_id) | ID of the Database Instance. |

## Authors

Module is maintained with help from [the community](https://github.com/scaleway-terraform-modules/terraform-scaleway-domain/graphs/contributors).

## License

Mozilla Public License 2.0 Licensed. See [LICENSE](https://github.com/scaleway-terraform-modules/terraform-scaleway-domain/tree/master/LICENSE) for full details.