Coder Social home page Coder Social logo

continuous-deployment-and-config's Introduction

Infrastructure Creation, configuration and deployment

Continuous Deployment using Ansible

Here's a sneak peek of the folder structure

.
├── main.yml                # Playbbook file
└── roles
   └── print
       └── tasks
           └── main.yml    # Task file

Build inventory file

Have AWS CLI installed and configured

First create the file and add [all] at the beginning

touch inventory
echo [all] > inventory

Run the following in the terminal

aws ec2 describe-instances \
\
        --query 'Reservations[*].Instances[*].PublicIpAddress' \
      --filters "Name=tag:Project,Values=breezy" \
      --output text >> inventory

Remote Control Using Ansible

Configuring an EC2 instance to run a Node.js 13.8.0 simple server

run in the terminal after setup

ansible-playbook main-remote.yml -i inventory --private-key [file].pem

Prerequisite:

  • A linux EC2 instance with port 3000 open for the inbound access.
  • Public IP address of an EC2 instance in your AWS account.
  • Inventory file
  • A key pair to connect your EC2 instance

Files related to the project

├── main-remote.yml     # Playbook file
├── inventory.txt 
└── roles
    └── setup
        ├── files
        │   └── index.js
        └── tasks
            └── main.yml

Files relevant

└── template.yml          
└── .circleci
    └── config.yml          

continuous-deployment-and-config's People

Contributors

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