Giter VIP home page Giter VIP logo

terraform-aws-autoscaling's Introduction

AWS Autoscaling Template

Build Status

WARNING: You are fully aware that AWS resources created by this template are not always free even during tests.

Getting Started

  1. Clone the repo

    $ git clone [email protected]:royge/terraform-aws-autoscaling.git
    
  2. Set AWS credentials

    $ export AWS_ACCESS_KEY_ID=<your-access-key-id>
    $ export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>
    
  3. Run docker terraform docker container

    $ make docker
    

    Alternative:

    If you don't like docker, you can install terraform directly on your machine using the following command.

    $ wget https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip
    $ sudo unzip -o -d /usr/local/bin terraform_0.11.8_linux_amd64.zip
    $ terraform version
    
  4. Initialize and validate

    $ ENV=test make init
    $ ENV=test make validate
    
  5. Execute plan

    $ ENV=test make plan
    
  6. Execute apply

    $ ENV=test make apply
    
  7. Execute destroy

    $ ENV=test make destroy
    

Integration Testing

  1. Install Go 1.11 or above

  2. Download tests dependencies

    $ make test-prepare
    
  3. Execute tests

    Before running this command, make sure to have terraformtest.io certificate added in ap-southeast-1 region of you AWS account. If you have existing certificate you can modify domain and awsRegion variable values in the autoscaling_test.go file.

    $ make test
    

TODO

  1. Make userdata.sh location configurable

terraform-aws-autoscaling's People

Contributors

dependabot[bot] avatar royge avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

ryanoatz99

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.