@skazka/aws
Version:
Skazka AWS
29 lines (26 loc) • 692 B
YAML
service: test
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, 'staging'}
region: ${opt:region, 'us-east-1'}
environment:
NODE_ENV: production
REGION: ${self:provider.region}
STAGE: ${self:provider.stage}
resources:
Resources:
UsersTable:
Type: 'AWS::DynamoDB::Table'
Properties:
TableName: users-${self:provider.stage}
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: email
AttributeType: S
KeySchema:
- AttributeName: email
KeyType: HASH
StreamSpecification:
StreamEnabled: true
StreamViewType: NEW_AND_OLD_IMAGES