bms-repository/commands/add-object/template/api/blank-dynamodb.yml
pfych 0029086b3f
Some checks failed
Build & Lint / build-lint (push) Failing after 2m10s
Deploy / setup (push) Failing after 1m3s
Init
2024-10-12 14:08:09 +11:00

17 lines
570 B
YAML

Resources:
{{ nameCamel }}Table:
Type: AWS::DynamoDB::Table
DeletionPolicy: ${self:custom.deletionPolicy.${opt:stage}}
UpdateReplacePolicy: ${self:custom.updatePolicy.${opt:stage}}
Properties:
TableName: ${env:APP_NAME}-${opt:stage}-{{ nameKebab }}
AttributeDefinitions:
- AttributeName: {{ primaryKey }}
AttributeType: S
KeySchema:
- AttributeName: {{ primaryKey }}
KeyType: HASH
BillingMode: PAY_PER_REQUEST
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true