question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fromTableName and fromTableArn

See original GitHub issue

🚀 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
jatsrtcommented, Sep 22, 2019

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

1reaction
gauravj116commented, Nov 1, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

class Table (construct) · AWS CDK - AWS Documentation
Creates a Table construct that represents an external table. static fromTableName(scope, id, tableName). public static fromTableName(scope: Construct, ...
Read more >
AWS CDK getting DynamoDB Stream ARN returns null
I tried the below, but when I access the streamArn using the getTableStreamArn it returns back null. ITable table = Table.fromTableArn(this, " ...
Read more >
How to Import Existing Resources in AWS CDK | bobbyhadz
the Dynamodb Table construct exposes the fromTableArn, fromTableName and ... To import an existing table from ARN we have to use the fromTableArn...
Read more >
@aws-cdk/aws-dynamodb | Yarn - Package Manager
fromTableName , Table.fromTableArn or Table.fromTableAttributes factory method. This method accepts table name or table ARN which describes the properties ...
Read more >
awsdynamodb - Go Packages
fromTableName , Table.fromTableArn or Table.fromTableAttributes factory method. This method accepts table name or table ARN which describes the properties ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found