Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLCOMPUTE-1224 | add aws default region to prevent botocore.exceptions.NoRegionError #3857

Merged
merged 4 commits into from
May 9, 2024

Conversation

CaptainSame
Copy link
Contributor

@CaptainSame CaptainSame commented May 9, 2024

boto3 client complains with NoRegionError if there is no default region specified. https://fluffy.yelpcorp.com/i/zBXdRwX6FxszthrZLm6FVnWp8L4rjmzJ.html#L309-310
Replicating the behaviour in paasta spark-run, adding the AWS_DEFAULT_REGION env variable for jobs with Spark drivers on k8s

Copy link
Member

@nemacysts nemacysts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(it would also be useful for folks git blaming in their IDEs/editors if this commit had a description)

@@ -442,6 +442,7 @@ def get_env(
env = super().get_env(system_paasta_config=system_paasta_config)

if self.get_executor() == "spark":
env["AWS_DEFAULT_REGION"] = DEFAULT_AWS_REGION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a comment about why this necessary would be useful for future yelpers :)

@CaptainSame CaptainSame merged commit 80e7ed3 into master May 9, 2024
9 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.

3 participants