Skip to content
This repository has been archived by the owner on Nov 20, 2017. It is now read-only.
/ aws-migrations Public archive

A tool that allows you to run AWS cli commands as a series of migrations.

License

Notifications You must be signed in to change notification settings

brewcore/aws-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Setup Scripts

Warning: this is a proof-of-concept only, it's not stable or error-free.

Prerequisites:

  • node / npm
  • aws cli

To run:

  • npm install
  • aws configure
  • node run.js up|down

How it works

Migrations are run in order from 1...n when going up, and n...1 when going down.

If an 'up' migration generates a JSON response from AWS, that response is stored in ./output and the data is made available to subsequent migrations.

Example:

Migration #1 creates a security group, and AWS returns the group id. This can be referenced in later migrations as {{migration1.GroupId}}.

TODO

  • Add error handling to stop migrations when AWS returns an error.
  • Add wait/handling for operations that take time on AWS.

About

A tool that allows you to run AWS cli commands as a series of migrations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published