Skip to content

Instantly share code, notes, and snippets.

@tkeeber
Last active February 17, 2019 20:10
Show Gist options
  • Save tkeeber/5d9321919d5fdc85a257fcf912c3829d to your computer and use it in GitHub Desktop.
Save tkeeber/5d9321919d5fdc85a257fcf912c3829d to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Example template
Resources:
GetOrdersFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: orderlambda/
Handler: app.lambdaHandler
Runtime: nodejs8.10
Environment:
Variables:
DB_USER: '{{resolve:ssm:DATABASE_USERNAME:1}}'
DB_PASSWORD: '{{resolve:ssm:DATABASE_PASSWORD:1}}'
DB_HOSTNAME: '{{resolve:ssm:DATABASE_HOSTNAME:1}}'
Events:
HelloWorld:
Type: Api
Properties:
Path: /orders
Method: get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment