Giter VIP home page Giter VIP logo

aws_instance_connect_helper's Introduction

AwsInstanceConnectHelper

AwsInstanceConnectHelper is a Capistrano3 plugin for EC2 Instance Connect deployment bundled with some AWS EC2 rake templates. This is intended as an internal plugin and is therefore not open for contributions, and Sunnyfounder is not responsible for any unintended consequences.

Setup & Usage

Add this line to your application's Gemfile:

group :development do
  gem 'aws_instance_connect_helper', git: '[email protected]:sunnyfounder/aws_instance_connect_helper.git', tag: 'v0.1.0'
end

Prerequisites

This Gem is intended to be used along with an authorization key saved on your profile (normally located at ~/.aws/credentials)

EC2 Instances on your AWS should be tagged with the according tags:

  • Project (Differentiating different projects, eg. core-web, analytics...)
  • Environment (eg. production, staging, development...)
  • Function (For setting different Capistrano Roles, eg. web, api, shadow...)
  • Name (An unique identifier)

1. Capistrano3 Plugin

  1. Add this line to your application's Capfile
require 'aws_instance_connect_helper/capistrano3'
  1. Configurate the helper (potentially at lib/capistrano/tasks/aws_helper.rake)
namespace :load do
  task :defaults do
    set :aws_helper_project, 'core-web'
    set :aws_helper_functions, %w[web shadow]
    set :aws_helper_env, proc { fetch :stage }
  end
end
  1. Invoke aws_helper:setup from your config/deploy.rb or config/deploy/ENVIROMENT.rb and easily deploy to servers with Instance Connect.
invoke 'aws_helper:setup'
servers = fetch :FUNCTION_servers

2. SSH Helper

  1. Add this line to your application's Rakefile
spec = Gem::Specification.find_by_name 'aws_instance_connect_helper'
Dir["#{spec.gem_dir}/lib/tasks/*.rake"].each { |file| load file }
  1. Access EC2 instances with Instance Connect easily with rake aws:access

aws_instance_connect_helper's People

Contributors

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