# Welcome to Serverless! # # This file is the main config file for your service. # It's very minimal at this point and uses default values. # You can always add more config options for more control. # We've included some commented out config examples here. # Just uncomment any of them to get that config option. # # For full config options, check the docs: # docs.serverless.com # # Happy Coding! service: MyBackend provider: name: aws runtime: java8 region: us-east-1 stage: dev memorySize: 512 timeout: 15 # The default is 6 versionFunctions: false iamRoleStatements: # permissions for all of your functions can be set here - Effect: Allow Action: - dynamodb:* Resource: - arn:aws:dynamodb:us-east-1:*:* # you can define service wide environment variables here environment: STAGE: ${opt:stage, self:provider.stage} # you can add packaging information here package: artifact: target/MyBackend-${env:API_VERSION, opt:version}.jar functions: userGet: handler: com.acme.my.backend.handler.user.UserGetHandler events: # All events associated with this function - http: path: user/get method: any # you can add CloudFormation resource templates here resources: Resources: $ref: ./cloudformation-resources.json plugins: - serverless-aws-alias