bilalcaliskan / terraform-aws-redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Redis Terraform Module

CI GitHub tag

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.

Usage

There are 2 different usage method for that repository

As Terraform Module

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.

As Github Workflow

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.

Redis Configuration

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.

Development

This project requires below tools while developing:

Make sure that you've installed the pre-commit configuration:

$ pre-commit install

References

About


Languages

Language:HCL 67.0%Language:Shell 25.3%Language:Makefile 5.8%Language:Smarty 1.9%