Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AWSTemplateFormatVersion: '2010-09-09'
- Transform: AWS::Serverless-2016-10-31
- Description: Example template
- Parameters:
- DATABASE_USERNAME:
- Description: 'Required. The Database username'
- Type: 'AWS::SSM::Parameter::Value<String>'
- Default: 'MyDatabaseUsernamename'
- DATABASE_PASSWORD:
- Description: 'Required. The Database password'
- Type: 'AWS::SSM::Parameter::Value<String>'
- Default: 'MyDatabasePassword'
- DATABASE_HOSTNAME:
- Description: 'Required. The Database hostname'
- Type: 'AWS::SSM::Parameter::Value<String>'
- Default: 'MyDatabaseHostname'
- Resources:
- GetOrdersFunction:
- Type: AWS::Serverless::Function
- Properties:
- CodeUri: orderlambda/
- Handler: app.lambdaHandler
- Runtime: nodejs8.10
- Environment:
- Variables:
- DB_USER: !Ref DATABASE_USERNAME
- DB_PASSWORD: !Ref DATABASE_PASSWORD
- DB_HOSTNAME: !Ref DATABASE_HOSTNAME
- Events:
- HelloWorld:
- Type: Api
- Properties:
- Path: /orders
- Method: get
Add Comment
Please, Sign In to add comment