Chalice create DynamoDB table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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