AWSTemplateFormatVersion: 2010-09-09 Transform: AWS::Serverless-2016-10-31 Description: Create DynamoDB table where event are to be stored and IoT topic rule Parameters: ResourceTag: Type: String ReadCapacityUnits: Description: Provisioned read throughput Type: Number Default: '10' MinValue: '5' MaxValue: '10000' ConstraintDescription: must be between 5 and 10000 WriteCapacityUnits: Description: Provisioned write throughput Type: Number Default: '10' MinValue: '5' MaxValue: '10000' ConstraintDescription: must be between 5 and 10000 Resources: DynamoDBTable: Type: AWS::DynamoDB::Table Properties: TableName: !Ref ResourceTag AttributeDefinitions: - AttributeName: "device" AttributeType: "S" KeySchema: - AttributeName: "device" KeyType: HASH ProvisionedThroughput: ReadCapacityUnits: !Ref ReadCapacityUnits WriteCapacityUnits: !Ref WriteCapacityUnits Outputs: TableName: Value: !Ref DynamoDBTable