Terraform module which creates a fully functional Redis cluster on AWS EC2 by combining Terraform
and bilalcaliskan.redis Ansible role. Tag
badge above indicates the
Ansible role version.
There are 2 different usage method for that repository
You need to add below module configuration into your terraform configuration:
module "redis" {
source = "git::https://github.com/bilalcaliskan/terraform-aws-redis.git"
instance_count = 3
instance_type = "t2.micro"
aws_region = "us-east-1"
root_block_device_size = "10"
}
Please check MODULE.md for all possible customization options.
I've created 2 different Github Workflow on that repository:
These workflows will prompt you for required information as input variables.
NOTICE
To be able to use that repository over Github Workflows, you must fork repository first and trigger workflows on forked repository. That's because of that only members of a repository can trigger workflows manually.
Purpose of that repository is setting up Redis instances on EC2 instances. This module uses almost fully-configurable bilalcaliskan.redis Ansible role to accomplish that. You can check the configurable variables of Ansible role and pass them over provisioning/redis.yaml file with your own needs.
This project requires below tools while developing:
- pre-commit
- terraform-docs required for terraform_docs pre-commit hook
Make sure that you've installed the pre-commit configuration:
$ pre-commit install