serverless / serverless/examples
pynamodb example not working if deployed in different regions
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 4.4k
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Description
When I use a non-default region (e.g., us-east-1 or eu-west-1) to deploy the aws-python-rest-api-with-pynamodb example, I get a AccessDeniedException exception if I call to the API or directly to the lambda function.
I compared the policy generated by serverless and it looks equivalent to the one generated for the default region (eu-central-1).
Any idea why this is happening?
(Sorry in advance if this has nothing to do with the example itself and it's an AWS internal issue that I totally ignore, I'll ask this somewhere else if so 0:-))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by deploying the aws-python-rest-api-with-pynamodb example in us-east-1 or eu-west-1, then reproduce the AccessDeniedException through the API and directly through the Lambda function. Compare the generated policy and regional configuration with the working eu-central-1 deployment; done means the cause is identified and non-default-region access works or is documented as an AWS limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100