Giter VIP home page Giter VIP logo

my-terraform-module's Introduction

Simple Terraform Module

  • state file is saved locally
  • Used provider is AWS
  • AWS Region: Europe (Frankfurt) eu-central-1
  • Access keys must be provided in main.tf file

Description

Nginx application running on an EC2 instance configured by a launch template and provisioned in an ASG

Simple scaling policies are created to add/remove instances by 1 capacity unit when the average CPU of the AGS exceeds/drops down 50%

The ASG capacity is configured as: desired = 1, min = 1, max = 2

The app runs behind an ALB and strictly though the ALB DNS name on port 80

The ALB is linked to an alias Route53 record

Variables needed for the module are

  • app_name: name of the application
  • env: the application environment (dev, test, staging, prod)
  • image_id: the id of the image used in launch templates (default = Amazon Linux 2 / kernal 5.10)
  • instance_type: the EC2 isntance type used in launch templates (default = t2.micro)
  • iam_instance_profile: the name of the iam instance profile used in launch template
  • key_name: the ec2 key pair
  • user_data: the scripts executed at ec2 launch
  • domain: the main domain to reach the app

my-terraform-module's People

Contributors

eysan avatar

Watchers

 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.