cityindex-attic / logsearch

[unmaintained] A development environment for ELK
Apache License 2.0
24 stars 8 forks source link

AWS Snapshot Tools #340

Closed dpb587 closed 10 years ago

dpb587 commented 10 years ago

In summary, the two new commands are:

Therefore, I can run the following during the deploy process after terminating an old stack which fulfills #337:

$ ./aws-ec2-snapshot-create/bin/run -v 'deploy-20140215T012719Z' live logsearch
enumerated volumes
started snapshot from vol-7df8027f/elasticsearch (snap-375ed1d2)
added volume tags to snap-375ed1d2
started snapshot from vol-c03a13ec/redis (snap-3d5ed1d8)
added volume tags to snap-3d5ed1d8
started snapshot from vol-bd311891/elasticsearch (snap-025ed1e7)
added volume tags to snap-025ed1e7

Then, the clone command helps me out during development to create volumes based off that live snapshot and rename things for usage in a development deployment:

$ ./aws-ec2-snapshot-clone/bin/run -v --availability-zone eu-west-1a --clone-envname dev --clone-servicename logsearch-dpb587-test1 'deploy-20140215T012719Z' live logsearch
enumerated snapshots
created volume from snap-3d5ed1d8/redis (vol-ae202582)
added snapshot tags to vol-ae202582
created volume from snap-025ed1e7/elasticsearch (vol-0d202521)
added snapshot tags to vol-0d202521
created volume from snap-375ed1d2/elasticsearch (vol-982025b4)
added snapshot tags to vol-982025b4
sopel commented 10 years ago

:+1: the scripts are really easy to understand and use due to the argument based approach (and implied documentation), I immediately found my way around - great stuff, thanks :)