Skip to content

Commit

Permalink
feature #1 - Add serverless framework inital setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 14, 2022
1 parent 56e3dac commit c4bb5aa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
service: sbf
frameworkVersion: ">=1.50.0 <2.0.0"
provider:
name: aws
runtime: nodejs12.x
timeout: 30
memorySize: 512
stage: ${opt:stage, 'dev'}
region: us-east-1
useDotenv: true
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
- dynamodb:BatchWriteItem
- dynamodb:CreateTable
- dynamodb:DescribeStream
- dynamodb:GetRecords
- dynamodb:GetShardIterator
- dynamodb:ListStreams
- dynamodb:Scan
Resource: arn:aws:dynamodb:#{AWS::Region}:#{AWS::AccountId}:table/*
environment:
STAGE: ${self:provider.stage}

plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-dotenv-plugin

custom:
funcDir: src/4-framework/functions
baseApi: sbf/v1
baseApiInternal: api/v1

0 comments on commit c4bb5aa

Please sign in to comment.