r/aws • • 16h ago

ci/cd What we learned running CI on one EC2 spot instance per job

0 Upvotes

TL;DR: one EC2 spot instance per GitHub Actions job. At the same 4 vCPUs as GitHub's 4-core runner (m8a's are full cores), build steps ran up to 2× faster and 7–12× cheaper, but every job waits ~40 s.

Build steps, cold medians, same run as GitHub (times on demand in us-east-1; costs on spot):

BuildTime vs GitHubSpot cost vs GitHub
Docker (grafana/k6)51 s vs 99 s, 1.9×$0.0025 vs $0.024
Go (cli/cli)34 s vs 73 s, 2.2× (8 jobs)$0.0020 vs $0.024
Python (pydantic)15 s vs 17 s, 1.1× (n.s.)$0.0017 vs $0.012

Costs are spot plus gp3 from boot, at least 60 s billed. Spot got m8a.xlarge in 52 of 99 jobs and still built Docker 1.7× and Go 1.9× faster cold (1.4× and 1.2× warm).

When it doesn't pay: a t3.large control plane and a t3.small listener run all the time, about $86/month, so your Actions bill has to be well above that. Each job waits 34–46 s for its instance vs 4–5 s on GitHub.

What we learned:

  • Spot m8a is often refused. Over three samples (17:00, 22:00 and 06:00 PST, three regions), m8a.xlarge spot launched in 44% of zones against m8i.xlarge's 81%; time of day didn't explain it. Don't let the SDK retry InsufficientInstanceCapacity: failing fast took a spot launch from 40 s to 9.6 s.
  • m8a beat Graviton: at equal vCPUs on demand, 0.64–0.88× m8i's time; m8g was about as fast as m8i.
  • gp3 throughput matters: at the free 125 MiB/s the image pull took 34 s vs 8 s at 500 MiB/s.

Why not CodeBuild-hosted runners or philips-labs' Terraform module (which can give a fresh VM per job in ephemeral mode)? We wanted one CLI for AWS, GCP and Azure.

We open sourced it as backmesh. https://github.com/backmesh/backmesh

What instance families have you found most reliable for spot CI?


r/aws • • 19h ago

technical question Denied account recovery and told to submit court order?

0 Upvotes

I'm trying to recover an account that I no longer have the root email credentials for. I have multiple domains on it and need them transferred to my updated, new account. I went through all of the support steps, proving that I was the one that paid for the account, but AWS still denied my request and mentioned that I can submit a court order to appeal. Is there any other way? Or is getting a lawyer my only option at this point?


r/aws • • 23h ago

re:Invent 5 re:invent tips we learned the hard way, add yours

68 Upvotes

a few of us are flying out to vegas soon, and after last time we wrote down what we'd do differently. sharing in case it saves someone a sore pair of feet.

  1. if it's going to be on youtube, watch it on the flight home. breakouts get recorded, most chalk talks, workshops and builder sessions don't. book the ones you can't watch later, and you get to ask the presenter about your own mess.
  2. one hotel per half day. in previous years it was wynn to mandalay bay that killed us, mandalay is out of the campus this year but wynn to mgm grand can still easily take 40 minutes. the strip is way longer than it looks on the map.
  3. "full" doesn't mean full. there's a walk-up line for reserved sessions and people no-show all the time. if you really want a session, just show up early.
  4. the expo is where the party invites are. most of the best evenings we had came from chatting at booths, not from the official agenda. the regional receptions are worth it too, the latam one was our favourite night.
  5. skip something on purpose. it's a marathon, not a sprint. by thursday everyone is a zombie, and re:play is a lot more fun if you still have legs.

what are we missing? add yours! :)


r/aws • • 16h ago

article Tech predictions for 2027 and beyond

Thumbnail allthingsdistributed.com
21 Upvotes

"Our brains only weigh 3 pounds. And the 86 billion neurons inside of them only require 20 watts to run. Yet, their capabilities far exceed the megawatt datacenters with millions of servers that are used to try to emulate them. The most successful technologies we can build will be those that amplify our unique human skills." - Werner Vogels