Comments (4)
Ah, so region is not being passed to docker somehow. How are you configuring your AWS credentials?
from aws-sam-cli.
I've tried it with 2 credentials: one with a default region, one without. Result is the same.
$ aws configure
AWS Access Key ID [****************etc]:
AWS Secret Access Key [****************etc]:
Default region name [us-east-1]:
Default output format [None]:
Error is:
Invalid endpoint: https://dynamodb..amazonaws.com: ValueError
Traceback (most recent call last):
File "/var/task/calc-airmile-lambda.py", line 36, in handler
dynamodb = boto3.resource('dynamodb' )
File "/var/runtime/boto3/__init__.py", line 92, in resource
return _get_default_session().resource(*args, **kwargs)
File "/var/runtime/boto3/session.py", line 389, in resource
aws_session_token=aws_session_token, config=config)
File "/var/runtime/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/var/runtime/botocore/session.py", line 836, in create_client
client_config=config, api_version=api_version)
File "/var/runtime/botocore/client.py", line 71, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/var/runtime/botocore/client.py", line 281, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/var/runtime/botocore/args.py", line 79, in get_client_args
timeout=(new_config.connect_timeout, new_config.read_timeout))
File "/var/runtime/botocore/endpoint.py", line 273, in create_endpoint
raise ValueError("Invalid endpoint: %s" % endpoint_url)
ValueError: Invalid endpoint: https://dynamodb..amazonaws.com
from aws-sam-cli.
I just tried with nodejs and python. I get AWS_REGION and AWS_DEFAULT_REGION populated with nodejs4.3 runtime, but not with python2.7.
As a workaround, can you set region when you call sam local
?
Ex: AWS_REGION=us-east-1 sam local start-api
I will continue to dig into the problem
from aws-sam-cli.
Workaround worked for me.
from aws-sam-cli.
Related Issues (20)
- SAM CLI Build Not Recognizing requirements.txt File HOT 3
- Bug: sam local invoke - FileNotFoundError HOT 3
- Bug: sam build - PermissionError HOT 2
- Unable to solve mapping for Timeout property HOT 3
- Bug: sam build - InvalidSamDocumentException HOT 3
- Bug: ValueError when executing `sam init` HOT 3
- Unable to debug AWS Quick Start application - Hello World Example with Powertools for AWS Lambda HOT 4
- Bug: CDK typescript project fails with "Runtime.ImportModuleError" when running sam local HOT 7
- SAM Does not build the application, returns "PythonPipBuilder:ResolveDependencies failed HOT 4
- Bug: Missing DockerContext doesn't fail validation HOT 2
- `sam init` fails to deploy a standard sample on Windows platform HOT 3
- Bug: sam local start-api not working in a docker-out-of-docker setup, due to an empty /var/task directory. HOT 2
- Bug: TITLE"Invalid API identifier specified" when attaching resources to an existing AWS::ApiGatewayV2::Api HOT 2
- Bug: sam build - UnsupportedBuilderException HOT 3
- SAM build crashes using terraform HOT 7
- Bug: sam local start-api - AttributeError HOT 7
- SAM local invocation with CDK generated template with typescript not able to find module index (index.mjs) HOT 3
- How to add tags with sam deploy HOT 4
- Bug: Got issue when using 1.116.0_1 for deployment HOT 2
- Bug: [WinError 3] The system cannot find the path specified HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sam-cli.