Skip to content

Instantly share code, notes, and snippets.

@stefanteixeira
Created October 2, 2015 19:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save stefanteixeira/ab91dfacda81bc030148 to your computer and use it in GitHub Desktop.
Save stefanteixeira/ab91dfacda81bc030148 to your computer and use it in GitHub Desktop.
Get EBS Snapshot ID from a Packer build
packer build -machine-readable packer.json | tee build.log
grep 'Tagging snapshot' build.log | cut -d, -f5 | cut -d: -f3 | grep -o '[^$(printf '\t')].*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment