serverless / serverless/examples

pynamodb example not working if deployed in different regions

Open
#242 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.