Skip to content

Instantly share code, notes, and snippets.

@siakon89
Created February 22, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siakon89/1148e73aef277d10cdad1c0c23869b13 to your computer and use it in GitHub Desktop.
Save siakon89/1148e73aef277d10cdad1c0c23869b13 to your computer and use it in GitHub Desktop.
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