Skip to content

fix: aws wrong target region on non-spot instances#615

Merged
adrianriobo merged 2 commits into
redhat-developer:mainfrom
adrianriobo:fix-614
Oct 2, 2025
Merged

fix: aws wrong target region on non-spot instances#615
adrianriobo merged 2 commits into
redhat-developer:mainfrom
adrianriobo:fix-614

Conversation

@adrianriobo
Copy link
Copy Markdown
Collaborator

@adrianriobo adrianriobo commented Oct 1, 2025

When backed url is used with a s3 bucket we need to change the region to match the bucket region, then the original target region was never set it back, causing to always use the bucket region to deploy non spot instances. This commit will set it back.

Fixes #614
Fixes #617

@adrianriobo
Copy link
Copy Markdown
Collaborator Author

^^ @ppitonak test this one once is avail on ghrc 🙏 and let me knoww

When backed url is used with a s3 bucket we need to change the region to match the bucket region, then the original target region was never set it back, causing to always use the bucket region to deploy non spot instances. This commit will set it back. Fixes redhat-developer#614.

Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
@ppitonak
Copy link
Copy Markdown
Collaborator

ppitonak commented Oct 2, 2025

I tried to create an on-demand VM in sa-east-1 and it worked as expected, previously it was created in us-east-2 no matter which region I chose.

Recently the region not offering Placement Score was fixed using a fixed region which offers the API, although the initial problem was solved using one single region for all the requests within the same account generates rate limit errors for API call. This commit introduces a way to randomize the region used to run the request distributing the load of the calls. Fixes redhat-developer#617

Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
@ppitonak
Copy link
Copy Markdown
Collaborator

ppitonak commented Oct 2, 2025

LGTM

Tested with bot non-spot and spot instances

@adrianriobo adrianriobo merged commit d102d1f into redhat-developer:main Oct 2, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AWS spot placement score rate-limited for all regions AWS target region not honored when using backed-url s3 and non-spot instances

2 participants