Code Monkey home page Code Monkey logo

terraform-aws-stateful's Introduction

terraform-aws-stateful

This terraform module creates an EC2 Cluster on AWS.

The following resources will be created:

  • Elastic File System (EFS)
  • Auto Scaling
  • Security groups for (ALB/NLB,EC2,EFS)
  • IAM roles and policies for the EC2 instances

In addition, you have the option to create:

  • Elastic Load Balancer

    • ALB - An external Application Load Balancer
    • NLB - An external Network Load Balancer
  • Route 53 (requires ALB)

    • URL pointing to a hostname (NLB or ALB hostname)

Usage

For deployment usage please see the examples folder.

Inputs

Name Description Type Default Required
certificate_arn Certificate ARN to be used on the ALB any n/a no
custom_efs_dir Custom EFS mount point - e.g /home string "" no
enable_alb Wheter to enable application load balancer bool false no
hosted_zone Route 53 hosted zone string "" no
hostname_create Wheter to create the hostnames on Route 53 bool false no
hostnames Hostnames to be created on Route 53 any n/a no
instance_count Number of EC2 intances number 1 no
instance_type EC2 instance type string "t2.micro" no
instance_volume_size_root Volume root size number 16 no
instances_subnet List of private subnet IDs for EC2 instances list n/a yes
name Name of this EC2/default cluster any n/a yes
cluster_name Name of the environment (dev/prod) any n/a yes
public_subnet_ids List of public subnet IDs for the ALB list [] no
secure_subnet_ids List of secure subnet IDs for EFS list n/a yes
security_group_ids Extra security groups for instances list [] no
userdata Extra commands to pass to userdata string "" no
vpc_id VPC ID to deploy the EC2/default cluster any n/a yes
lb_type Either ALB, NLB, or EIP to enable string "" no
lb_port Port to be used in the security groups and in LB the health check number 0 no
lb_protocol LB protocol - TCP or UDP number "" no
sg_cidr_blocks LB protocol - TCP or UDP list [] no

terraform-aws-stateful's People

Contributors

jeremiasroma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.