Skip to content

Instantly share code, notes, and snippets.

View mrysav's full-sized avatar

Mitchell Rysavy mrysav

View GitHub Profile
@mrysav
mrysav / benchmark-ec2-boottime.sh
Last active May 20, 2019 21:43 — forked from andsens/benchmark-ec2-boottime.sh
Starts a single instance and measures the time until SSH connectivity
#!/bin/bash -e
# Make sure awscli is configured correctly ("aws configure")
ami_id='ami-60b6c60a' # amazon linux
availability_zone='us-east-1b'
keypair="KEYPAIR_NAME"
keypath="PATH_TO_PEM_FILE"
instance_type="t2.micro"
sg_id="sg-YOURS"
subnet_id="subnet-YOURS"