Giter VIP home page Giter VIP logo

symmetrical-spork's Introduction

symmetrical-spork

Deploy service with AWS Fargate using terraform

Directory layout

.
├── scripts                            # scripts to run terraform & tests
├── terraform
  - aws                                # Terraform AWS infrastructure
├── tests                              # Infrastructure tests
├── Makefile                           # Set of tasks to execute
└── README.md                          # Documentation

Proposed Infrastructure Architecture

design

  • AWS Fargate
  • AWS Application Load Balancer

The application load balancer should have an /service endpoint and /__healthcheck__ health check endpoint.

If something is missing, feel free adding it to a solution.

Objectives

The task objectives were as follows:

Deploy

The Terraform scripts has single file variables.tf to define all the variables used in the scripts. Only this file needs to be changed in order to make any configuration changes.

To Deploy the cluster with terraform, following are required.

Terraform v0.12.16 (Latest at this time)

AWS access key in .credentials file.

cat .credentials
[default] aws_access_key_id = aws_secret_access_key =

Provide path of .credentials file in main_indy.tf file.

shared_credentials_file = "<Provide full path to the .credentials file.>"

Plan the changes and save the state.

terraform plan -out infra.state

Deploy the infrastructure.

terraform apply

Test the whole setup

TODO: Document how to test the setup

Note

Please do not make pull requests. Fork/Clone the repo instead and work on it.

There is no need to deploy infrastructure to AWS. Just make sure it fully valid terraform infrastructure-as-code setup and it has sufficient level of tests.

symmetrical-spork's People

Contributors

ivankatliarchuk avatar serversteam avatar

Watchers

James Cloos 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.