Git Product home page Git Product logo

ansible_python_app_deployer's Introduction

Ansible-ecs-deploy-playbook

Use this playbook to deploy a app into Amazon ECS, we use a simple Python app as our default scenario.

This playbook will build the app's image with docker, create and send the image into a ECR repository. Create a VPC and everything that is necessary in it(subnets, security groups...). Create a ELB. Create a EC2 instance. Create a ECS cluster with the service that runs the app's image we created. Your app will be running in seconds.

Make sure you have pip, Docker and Awscli already installed on the computer that will execute this playbook.

Make sure you have a AWS account with all permissions necessary to create the services. You will need a AWS Access key ID and AWS Secret Access Key, and a AWS Keypair to configure in the EC2 instance.

How to deploy
  1. Insert your AWS credentials with the command aws configure. Also configure your Default region name with the same region that is set in the file ansible/group_vars/all.yml in var aws_region, the default is us-west-2.
  2. Insert your AWS keypair in the file ansible/group_vars/all.yml, in var aws_keypair wich is the name of the keypair that EC2 will use
  3. To run the deploy, access the folder ansible and run the command ansible-playbook ansible-ecs-deploy-playbook.yml.

ansible_python_app_deployer's People

Contributors

madhoshyagnik 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.