Skip to content
Discussion options

You must be logged in to vote

In your class GenericTable, the constructor calls initialize() which calls createTable(). After initialize() ends, you call createTable() again in the constructor. This creates two tables with the same supplied ID, causing this error.

Please view our CDK Workshop to see an example of how to create a custom construct. This isn't related to your issue, but the pattern you have of creating a class which isn't a construct is a bit unorthodox 🙂

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by peterwoodworth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants