I want to create a dynamo db table using cloud formation template and then i want to create entries in that table using the same cloud formation template in a single stack. Can someone tell how this can be achieved , it is possible or not ?
I tried using the custom resources lambda function but it does not work
2
Answers
I have not tested it but the CloudFormation entity has an attribute ImportSourceSpecification (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html)
And DynamoDB supports import from S3 (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html)
To be tested.
Here is a small example that creates a table and adds 5 items: