Skip to content

Instantly share code, notes, and snippets.

View tkeeber's full-sized avatar

Tom Keeber tkeeber

View GitHub Profile
ApiGateway:
Type: AWS::ApiGateway::RestApi
Properties:
EndpointConfiguration:
Types:
- 'REGIONAL'
Body:
swagger: '2.0'
info:
version: 'v1'
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Example template
Resources:
GetOrdersFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: orderlambda/
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS SNS topic to SQS Queue Filtered
Resources:
StatsTopic:
Type: AWS::SNS::Topic
StatsPersistQueue:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS SNS topic to SQS Queue
Resources:
StatsTopic:
Type: AWS::SNS::Topic
StatsPersistQueue:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Api Gateway to SNS topic
Resources:
StatsApiGateway:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
@tkeeber
tkeeber / cloudformation-basic-lambda-using-parameter-store.yaml
Last active November 28, 2018 08:48
cloudformation-basic-lambda-using-parameter-store
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: 'MyDatabaseUsername'
@tkeeber
tkeeber / cloudformation-basic-lambda-env-vars.yaml
Created November 6, 2018 21:30
cloudformation-basic-lambda-env-vars.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Example template
Parameters:
DATABASE_USERNAME:
Description: 'Required. The Database username'
Type: 'String'
@tkeeber
tkeeber / cloudformation-basic-lambda-hard-coded-vars.yaml
Last active November 6, 2018 21:29
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/