GithubHelp home page GithubHelp logo

umeshgadage1989 / cmn-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neowu/cmn-project

0.0 2.0 0.0 643 KB

aws resource manager

License: Apache License 2.0

Shell 3.31% Nginx 0.31% Java 96.38%

cmn-project's Introduction

CMN

cmn is a AWS resource manager. this tool is designed to support our own project, not to be a generic aws tool.

TODO:

  • detect ELB to internal change, AS group policy changes
  • make Task not tied to resource, deleteTask should pass remoteResource only, refactory Task/Workflow
  • monitor, eval pcp.io? collectd (server/client) to rabbitmq to ES
  • elasticsearch AWS plugin
  • general linux tuning, like ulimit to sys
  • redis clustering
  • mongo clustering
  • docker

Known issues

  • some aws resource is globally, such as IAM/S3, do not use same env name on multiple region

Change log

please check CHANGELOG.md

References

doc/rabbitmq.md

Usage

cmn ${goal} --{key}={value} --{key}={value}

GOALS:
  sync        # sync local config to aws, create/delete resources accordingly (use --dry-run to check the impacts)
  del         # delete all remote resources
  desc        # describe resources
  bake        # bake ami for specified image resource
  start       # start all ec2 instances
  stop        # stop all ec2 instances
  exec        # execute command remotely via ssh
  upload      # scp local package dir to remote /opt/packages
  provision   # run playbook remotely via ssh
  ssh         # start ssh terminal for specified instance resource
  deploy      # rolling update instance or auto scaling group

CONTEXTS:
  env:              # specify env folder or use current folder if absent
  id:               # only execute goal on specific resource, useful for bake ami and execute command, multiple id uses comma delimited string
  dry-run:          # print the tasks will be executed
  cmd:              # shell command to run
  script:           # exec can use command or script
  package-dir:      # upload dir to /opt/packages
  i:                # specify index of instance if multiple
  resume-bake:      # resume bake ami by using previous instance, for troubleshooting purpose

EXAMPLES:
  cmn desc
  cmn sync --dry-run=true
  cmn bake --id={imageId}
  cmn exec --id={instanceId} --cmd={command}
  cmn exec --id={instanceId} --script={scriptPath}
  cmn upload --id={instanceId} --package-dir={packageDir}
  cmn ssh --id={instanceId} --i={optionalIndex}
  cmn provision --id={instanceId} --playbook={optionalPlaybookPath} --package-dir={optionalPackageDir}
  cmn deploy --id={asGroupId}

cmn-project's People

Contributors

neowu avatar gaborage avatar

Watchers

umesh avatar  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.