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

fromTableName and fromTableArn #3895

Closed
1 of 2 tasks
rhboyd opened this issue Sep 1, 2019 · 6 comments · Fixed by #5280
Closed
1 of 2 tasks

fromTableName and fromTableArn #3895

rhboyd opened this issue Sep 1, 2019 · 6 comments · Fixed by #5280
Assignees
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved. in-progress This issue is being actively worked on.

Comments

@rhboyd
Copy link
Contributor

rhboyd commented Sep 1, 2019

🚀 Feature Request

General Information

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Description

The DynamoDB Table Construct should support two static methods fromTableName and fromTableArn to create Table objects so that grant*() methods can be used to give Lambda Functions permissions to CRUD the Table.

Proposed Solution

Ctrl + C / Ctrl + V from maybe S3 Buckets.

Environment

  • CDK CLI Version:
  • Module Version:
  • OS: all
  • Language: all

Other information

@rhboyd rhboyd added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 1, 2019
@skinny85 skinny85 self-assigned this Sep 2, 2019
@jatsrt
Copy link

jatsrt commented Sep 22, 2019

Another use case is subscribing a lambda function to an existing(defined elsewhere) table stream.

@SomayaB SomayaB added the @aws-cdk/aws-dynamodb Related to Amazon DynamoDB label Oct 1, 2019
@NGL321 NGL321 removed the needs-triage This issue or PR still needs to be triaged. label Oct 14, 2019
@NGL321
Copy link
Contributor

NGL321 commented Oct 14, 2019

@rhboyd,

Sorry for the long delay. This seems like a totally reasonable add!

😸

@gauravj116
Copy link

Is it possible to do this using any lower level APIs?

@Pinny3
Copy link

Pinny3 commented Nov 2, 2019

Any news for that? Need it desperately....

@zxkane
Copy link
Contributor

zxkane commented Nov 19, 2019

Any progress on it? Might I contribute PR for it.

@skinny85
Copy link
Contributor

Go ahead @zxkane .

zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 3, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 3, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 3, 2019
@SomayaB SomayaB added the in-progress This issue is being actively worked on. label Dec 3, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 18, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 18, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 18, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 24, 2019
zxkane added a commit to zxkane/aws-cdk that referenced this issue Dec 24, 2019
@mergify mergify bot closed this as completed in #5280 Dec 26, 2019
mergify bot added a commit that referenced this issue Dec 26, 2019
Closes #3895.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved. in-progress This issue is being actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants