-
-
Save license2e/b94b9f41f6be313f85935278c7b80d01 to your computer and use it in GitHub Desktop.
serverless framework/cli configuration file
This file contains hidden or 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
service: "sadiavasio" | |
provider: "aws" | |
functions: | |
sadiavas: | |
handler: "index.graphql" | |
include: | |
- blog/ | |
events: | |
- http: | |
path: "blog/graphql" | |
method: "POST" | |
custom: | |
excludePatterns: [] | |
optimize: | |
exclude: | |
- "aws-sdk" | |
transforms: | |
- | |
name: "babelify" | |
opts: | |
presets: | |
- "es2015" | |
defaults: | |
stage: "dev" | |
region: "us-west-2" | |
memory: 1024 | |
timeout: 6 | |
resources: | |
Resources: | |
PostsDynamo: | |
Type: "AWS::DynamoDB::Table" | |
DeletionPolicy: "Retain" | |
Properties: | |
AttributeDefinitions: | |
- | |
AttributeName: "id" | |
AttributeType: "S" | |
KeySchema: | |
- | |
AttributeName: "id" | |
KeyType: "HASH" | |
ProvisionedThroughput: | |
ReadCapacityUnits: 1 | |
WriteCapacityUnits: 1 | |
TableName: "${service}-posts-${stage}" | |
AuthorsDynamo: | |
Type: "AWS::DynamoDB::Table" | |
DeletionPolicy: "Retain" | |
Properties: | |
AttributeDefinitions: | |
- | |
AttributeName: "id" | |
AttributeType: "S" | |
KeySchema: | |
- | |
AttributeName: "id" | |
KeyType: "HASH" | |
ProvisionedThroughput: | |
ReadCapacityUnits: 1 | |
WriteCapacityUnits: 1 | |
TableName: "${service}-authors-${stage}" | |
CommentsDynamo: | |
Type: "AWS::DynamoDB::Table" | |
DeletionPolicy: "Retain" | |
Properties: | |
AttributeDefinitions: | |
- | |
AttributeName: "id" | |
AttributeType: "S" | |
KeySchema: | |
- | |
AttributeName: "id" | |
KeyType: "HASH" | |
ProvisionedThroughput: | |
ReadCapacityUnits: 1 | |
WriteCapacityUnits: 1 | |
TableName: "${service}-comments-${stage}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment