@cfn-modules/dynamodb-table
v1.6.1
Published
AWS DynamoDB table with auto scaling and alerting
Downloads
53
Readme
cfn-modules: AWS DynamoDB table
AWS DynamoDB table with auto scaling and alerting.
Install
Install Node.js and npm first!
npm i @cfn-modules/dynamodb-table
Usage
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Table:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
AlertingModule: !GetAtt 'Alerting.Outputs.StackName' # optional
KmsKeyModule: !GetAtt 'Key.Outputs.StackName' # optional
TableName: user # optional
PartitionKeyName: id # optional
PartitionKeyType: S # optional
SortKeyName: '' # optional
SortKeyType: N # optional
BillingAndScalingMode: PROVISIONED # optional
MaxWriteCapacityUnits: '1' # optional
MinWriteCapacityUnits: '1' # optional
WriteCapacityUnitsUtilizationTarget: '80' # optional
MaxReadCapacityUnits: '1' # optional
MinReadCapacityUnits: '1' # optional
ReadCapacityUnitsUtilizationTarget: '80' # optional
Encryption: 'false' # optional; deprecated in v1, will be removed in v3, use KmsKeyModule instead!
StreamViewType: DISABLED # optional
TtlAttributeName: '' # optional
BackupRetentionPeriod: '30' # optional
BackupScheduleExpression: 'cron(0 5 ? * * *)' # optional
PointInTimeRecoveryEnabled: 'true' # optional
TemplateURL: './node_modules/@cfn-modules/dynamodb-table/module.yml'