Chalice create DynamoDB table
AWSTemplateFormatVersion: '2010-09-09' | |
Metadata: | |
License: Apache-2.0 | |
Description: 'AWS CloudFormation Sample Template DynamoDB_Table: This template demonstrates | |
the creation of a DynamoDB table. **WARNING** This template creates an Amazon DynamoDB | |
table. You will be billed for the AWS resources used if you create a stack from | |
this template.' | |
Resources: | |
blogDemo: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
TableName: blog-demo-1 | |
BillingMode: PAY_PER_REQUEST | |
AttributeDefinitions: | |
- AttributeName: id | |
AttributeType: S | |
KeySchema: | |
- AttributeName: id | |
KeyType: HASH | |
Outputs: | |
TableName: | |
Value: !Ref 'blogDemo' | |
Description: Table name of the newly created DynamoDB table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment