Skip to content

Instantly share code, notes, and snippets.

@alexei-led
Created April 29, 2021 14:39
Show Gist options
  • Save alexei-led/9a22c748a6697c58a555702b709205b9 to your computer and use it in GitHub Desktop.
Save alexei-led/9a22c748a6697c58a555702b709205b9 to your computer and use it in GitHub Desktop.
Markdium-Exploring AWS Spot Instances from command line
spotinfo --type="^[[:alnum:]]{2}g\.\S*" --cpu=8 --region=us-west-2 --sort=price --output=text
## output
type=t4g.2xlarge, vCPU=8, memory=32GiB, saving=70%, interruption='<5%', price=0.08
type=c6g.2xlarge, vCPU=8, memory=16GiB, saving=50%, interruption='<5%', price=0.14
type=m6g.2xlarge, vCPU=8, memory=32GiB, saving=54%, interruption='<5%', price=0.14
type=r6g.2xlarge, vCPU=8, memory=64GiB, saving=63%, interruption='<5%', price=0.15
type=c6g.4xlarge, vCPU=16, memory=32GiB, saving=50%, interruption='<5%', price=0.27
type=m6g.4xlarge, vCPU=16, memory=64GiB, saving=54%, interruption='5-10%', price=0.28
type=r6g.4xlarge, vCPU=16, memory=128GiB, saving=63%, interruption='<5%', price=0.30
type=c6g.8xlarge, vCPU=32, memory=64GiB, saving=50%, interruption='<5%', price=0.54
type=m6g.8xlarge, vCPU=32, memory=128GiB, saving=54%, interruption='<5%', price=0.57
type=r6g.8xlarge, vCPU=32, memory=256GiB, saving=63%, interruption='<5%', price=0.59
type=c6g.12xlarge, vCPU=48, memory=96GiB, saving=50%, interruption='<5%', price=0.81
type=m6g.12xlarge, vCPU=48, memory=192GiB, saving=54%, interruption='<5%', price=0.85
type=r6g.12xlarge, vCPU=48, memory=384GiB, saving=63%, interruption='<5%', price=0.89
type=c6g.16xlarge, vCPU=64, memory=128GiB, saving=50%, interruption='<5%', price=1.08
type=c6g.metal, vCPU=64, memory=128GiB, saving=50%, interruption='<5%', price=1.08
type=m6g.metal, vCPU=64, memory=256GiB, saving=54%, interruption='<5%', price=1.14
type=m6g.16xlarge, vCPU=64, memory=256GiB, saving=54%, interruption='<5%', price=1.14
type=r6g.metal, vCPU=64, memory=512GiB, saving=63%, interruption='<5%', price=1.19
type=r6g.16xlarge, vCPU=64, memory=512GiB, saving=63%, interruption='<5%', price=1.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment