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

Local Lambda endpoint sample code is broken #583

Closed
alexcasalboni opened this issue Jul 28, 2018 · 1 comment
Closed

Local Lambda endpoint sample code is broken #583

alexcasalboni opened this issue Jul 28, 2018 · 1 comment

Comments

@alexcasalboni
Copy link
Contributor

Description:

If you just copy-and-past this code and run it locally, it fails:

import boto3

if running_locally:

    lambda_client = boto3.client('lambda',
                                 endpoint_url="http://127.0.0.1:3001",
                                 use_ssl=False,
                                 verify=False,
                                 config=Config(signature_version=UNSIGNED,
                                               read_timeout=0,
                                               retries={'max_attempts': 0}))

Observed result: NameError and botocore.exceptions.NoRegionError are raised

Expected result: the code should run smoothly without any required change.

@jfuss
Copy link
Contributor

jfuss commented Aug 1, 2018

Closing as PR was merged.

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

No branches or pull requests

2 participants