Skip to content

Instantly share code, notes, and snippets.

View AdamBouhmad's full-sized avatar
🐢

Adam Bouhmad AdamBouhmad

🐢
View GitHub Profile

Keybase proof

I hereby claim:

  • I am adambouhmad on github.
  • I am routers (https://keybase.io/routers) on keybase.
  • I have a public key ASDIKxaWXEXYh8MSYwfVPDu2SnMknaO0SDKMQtAdh9-lWAo

To claim this, I am signing this object:

@AdamBouhmad
AdamBouhmad / packer-ami-id
Created March 30, 2017 16:20 — forked from danrigsby/packer-ami-id
Get AMI ID from a packer build
packer build packer.json 2>&1 | sudo tee output.txt
tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt