Skip to content

Instantly share code, notes, and snippets.

@tkeeber
Last active November 6, 2018 21:29
Show Gist options
  • Save tkeeber/19ec0cc0360914debf040682965e9ef9 to your computer and use it in GitHub Desktop.
Save tkeeber/19ec0cc0360914debf040682965e9ef9 to your computer and use it in GitHub Desktop.
cloudformation > Parameter Store
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: 'admin'
DB_PASSWORD: 'password'
DB_HOSTNAME: 'jdbc:mysql://localhost/orders'
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