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

DISCUSS - use boto session for creating clients #16

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

collingreen
Copy link
Collaborator

Use boto session (with explicit credentials and region) when creating
lambda and api gateway clients. This can help boto deal with different
regions more effectively.

Deploying failed every time with botocore.exceptions.NoRegionError: You must specify a region. without these changes. Perhaps there is a way to set default region for boto but without it this is necessary?

Use boto session (with explicit credentials and region) when creating
lambda and api gateway clients. This can help boto deal with different
regions more effectively.
@Miserlou
Copy link
Owner

Region should be loaded from

cat ~/.aws/config
[default]
output = json
region = us-east-1

But I like this change

Miserlou pushed a commit that referenced this pull request Feb 18, 2016
DISCUSS - use boto session for creating clients
@Miserlou Miserlou merged commit e8f8da6 into Miserlou:master Feb 18, 2016
@collingreen collingreen deleted the boto3-use-region-sessions branch July 1, 2016 08:02
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.

None yet

2 participants