aws / aws/serverless-application-model

Allow Region to be specified in DynamoDBCrudPolicy

Open
#3,702 1 comment 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

The `DynamoDBCrudPolicy` currently only allows the table name to be configured. The region is always assumed to be the same region as the resource being deployed. We should be able to override the region in order to easily allow e.g deploying a lambda that can access a dynamodb table in a different region like so:

```
"DynamoDBCrudPolicy": {
"TableName": {
"Ref": "MyDynamoDBTableName"
},
"Region": {
"Ref": "us-west-2"
}
}
```

I'm aware that I can manually copy + paste the expanded definition for `DynamoDBCrudPolicy` into my SAM template, but allowing the region to be specified as proposed will make things easier.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.