Skip to content

fix: always provide region to AWS SDK clients#3630

Merged
hassy merged 2 commits intomainfrom
fix/aws-no-default-region
Sep 25, 2025
Merged

fix: always provide region to AWS SDK clients#3630
hassy merged 2 commits intomainfrom
fix/aws-no-default-region

Conversation

@hassy
Copy link
Member

@hassy hassy commented Sep 25, 2025

Description

AWS SDK v3 clients require the region to be set, even for global services like STS and IAM.

This change implements the following logic:

  • On Lambda/ECS platform start up, try to find if the default region is set at config/profile level (or via AWS_REGION env var)
    • If a default region is not set, use the region in which the test is going to run
  • Pass that value to all SDK client constructors, such as STS or IAM clients

Fixes #3629

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

  • Does this require an update to the docs? Yes
  • Does this require a changelog entry? Yes

@hassy hassy force-pushed the fix/aws-no-default-region branch from 50b5fd0 to bcbbf4e Compare September 25, 2025 12:58
AWS SDK v3 clients require the region to be set, even for global services like STS and IAM.

This change implements the following logic:
- On Lambda/ECS platform start up, try to find if the default region is set at config/profile level (or via AWS_REGION env var)
- If a default region is not set, use the region in which the test is going to run
- Pass that value to all SDK client constructors, such as STS or IAM clients
@hassy hassy force-pushed the fix/aws-no-default-region branch from bcbbf4e to 51cc45a Compare September 25, 2025 14:22
@hassy hassy merged commit 696fcfc into main Sep 25, 2025
62 checks passed
@hassy hassy deleted the fix/aws-no-default-region branch September 25, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2.0.25 unable to trigger test run-fargate Error: Region is missing

1 participant