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

Allow Region to be specified in DynamoDBCrudPolicy #3702

Open
cdaley0 opened this issue Jan 8, 2025 · 0 comments
Open

Allow Region to be specified in DynamoDBCrudPolicy #3702

cdaley0 opened this issue Jan 8, 2025 · 0 comments
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Comments

@cdaley0
Copy link

cdaley0 commented Jan 8, 2025

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.

@cdaley0 cdaley0 added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.
Projects
None yet
Development

No branches or pull requests

1 participant