Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# latest ubuntu 16.04 ami
aws ec2 describe-images --owners "099720109477" --filters Name="root-device-type",Values="ebs" \
Name=architecture,Values=x86_64 Name=name,Values='ubuntu/images/hvm-ssd/ubuntu-xenial-16.04*' \
--query 'sort_by(Images, &CreationDate)[-3:].[ImageId, CreationDate, Name]' --output=text
aws ec2 describe-images --owners "099720109477" --filters Name="root-device-type",Values="ebs" \
Name=architecture,Values=x86_64 Name=name,Values='ubuntu/images/hvm-ssd/ubuntu-xenial-16.04*' \
--query 'sort_by(Images, &CreationDate)[-1].ImageId' --output=text
@loivis
loivis / .a curated list of AWS resources to prepare for the AWS Certifications
Last active August 18, 2018 13:37 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of AWS resources to prepare for the AWS Certifications
@loivis
loivis / all_aws_lambda_modules.txt
Created June 12, 2016 22:25 — forked from gene1wood/all_aws_lambda_modules_python.md
AWS Lambda function to list all available Python modules and post the list to Pastebin
# module list (generated by listmodules.py)
#
# timestamp='20160226T200954Z'
# sys.version='2.7.10 (default, Dec 8 2015, 18:25:23) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]'
# sys.platform='linux2'
# platform='Linux-4.1.13-19.31.amzn1.x86_64-x86_64-with-glibc2.2.5'
#
BaseHTTPServer
Bastion
CDROM