You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spawn launch --region ignored; ambient AWS_REGION/resolution wins → instance in wrong region #276
spawn launch --region us-west-2 launches in us-west-1 instead (region flag ignored; ambient AWS_REGION/config wins)
What happened
Launching with an explicit --region us-west-2, the instance was created in us-west-1 every time (3 boxes, all in us-west-1c). spawn connect/terminate then also reported "Found instance in us-west-1", and cross-region access to my us-west-2 bucket/scripts failed.
spawn launch loam-ndvi-0 --instance-type m8g.4xlarge --spot --region us-west-2 ...
# → i-… created in us-west-1c, NOT us-west-2
Environment
spawn v0.68.1, AWS_PROFILE=aws (profile default region = us-west-2)
AWS_REGION=us-east-1 was set in the shell env; AWS_DEFAULT_REGION was unset on the first attempts, then set to us-west-2.
Oddly the box landed in neither the --region value (us-west-2) nor AWS_REGION (us-east-1) — it landed in us-west-1. So the resolution order is not simply "flag < env".
Impact
The explicit --region flag appears to be ignored or overridden by ambient AWS region resolution. This is high-blast-radius: a workflow whose data/scripts live in region X can silently launch compute in region Y, causing cross-region failures (and, if it half-works, cross-region egress cost). It also made --command/spored debugging confusing because SSM was targeting a different region than the box.
Expected
An explicit --region on spawn launch should win over AWS_REGION / AWS_DEFAULT_REGION / profile default, or spawn should error if they conflict.
Workaround
Pin BOTH AWS_REGION and AWS_DEFAULT_REGION to the target region in the environment before spawn launch; the --region flag alone was not sufficient. With both pinned, the box correctly launched in us-west-2b.
Repro
AWS_REGION=us-east-1 spawn launch t --instance-type m8g.4xlarge --spot --region us-west-2 --require-spored=false
# inspect the resulting instance's AZ — observed us-west-1, not us-west-2
Activity
chore(release): v0.69.0
Make spawn burst and every other command honour --region and --profile (
Make spawn burst and every other command honour --region and --profile (
Make spawn burst and every other command honour --region and --profile (