Package Exports
- cf-to-dynamodb-schema
- cf-to-dynamodb-schema/dist/main.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cf-to-dynamodb-schema) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cf-to-dynamodb-schema
Defined Cloudformation DynamoDB Template convert to json to be adapted for aws dynamodb create-table --cli-input-json
Which template you can use?
aws-cdk'scdk.out/<table-name>.template.json.yamlor.ymlof Cloudformation Template
Install
npm i -D cf-to-dynamodb-schema
yarn add -D cf-to-dynamodb-schema
# or npx
npx cf-to-dynamodb-schema --helpHow to use
<path>is./cdk.out/<table-name>.template.jsonor yaml file.- For more details, See /example directory !
Run create-table from <path>
cf-to-dynamodb-schema create-table <path> -e <dynamodb-endpoint> -p <aws-profile-name>Get adapted .json file to create-table json for aws dynamodb command
# Output command line
cf-to-dynamodb-schema parse-template <path>
# Export json
cf-to-dynamodb-schema parse-template <path> -o generated.json