-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hogan Bobertz
committed
Sep 19, 2023
1 parent
8a40589
commit dde924e
Showing
3 changed files
with
100 additions
and
440 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
packages/@aws-cdk-testing/cli-integ/resources/templates/ddbStack.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"AWSTemplateFormatVersion" : "2010-09-09", | ||
|
||
"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.", | ||
|
||
"Parameters" : { | ||
"HashKeyElementName" : { | ||
"Description" : "HashType PrimaryKey Name", | ||
"Type" : "String", | ||
"AllowedPattern" : "[a-zA-Z0-9]*", | ||
"MinLength": "1", | ||
"MaxLength": "2048", | ||
"ConstraintDescription" : "must contain only alphanumberic characters" | ||
}, | ||
|
||
"HashKeyElementType" : { | ||
"Description" : "HashType PrimaryKey Type", | ||
"Type" : "String", | ||
"Default" : "S", | ||
"AllowedPattern" : "[S|N]", | ||
"MinLength": "1", | ||
"MaxLength": "1", | ||
"ConstraintDescription" : "must be either S or N" | ||
}, | ||
|
||
"ReadCapacityUnits" : { | ||
"Description" : "Provisioned read throughput", | ||
"Type" : "Number", | ||
"Default" : "5", | ||
"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" : { | ||
"myDynamoDBTable" : { | ||
"Type" : "AWS::DynamoDB::Table", | ||
"Properties" : { | ||
"AttributeDefinitions": [ { | ||
"AttributeName" : {"Ref" : "HashKeyElementName"}, | ||
"AttributeType" : {"Ref" : "HashKeyElementType"} | ||
} ], | ||
"KeySchema": [ | ||
{ "AttributeName": {"Ref" : "HashKeyElementName"}, "KeyType": "HASH" } | ||
], | ||
"ProvisionedThroughput" : { | ||
"ReadCapacityUnits" : {"Ref" : "ReadCapacityUnits"}, | ||
"WriteCapacityUnits" : {"Ref" : "WriteCapacityUnits"} | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"Outputs" : { | ||
"TableName" : { | ||
"Value" : {"Ref" : "myDynamoDBTable"}, | ||
"Description" : "Table name of the newly created 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
Oops, something went wrong.