Permalink
Switch branches/tags
Nothing to show
Find file Copy path
27fbbb3 Mar 8, 2018
1 contributor

Users who have contributed to this file

60 lines (59 sloc) 1.76 KB
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: This template creates the stack for project PJ-1-0-0. Generated by Sigma
Resources:
ddbcontactus:
Type: AWS::DynamoDB::Table
Properties:
TableName: contact_us
AttributeDefinitions:
- AttributeName: email
AttributeType: S
KeySchema:
- AttributeName: email
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
PJhandler:
Type: AWS::Serverless::Function
Properties:
FunctionName: PJhandler
Description: Invokes functions defined in PJ/handler.js in project PJ-1-0-0.
Generated by Sigma.
CodeUri: s3://sam.artifacts.slappforge.com/package.zip
Handler: PJ/handler.handler
Timeout: 60
Runtime: nodejs6.10
Policies:
- DynamoDBCrudPolicy:
TableName: contact_us
- LambdaInvokePolicy:
FunctionName: PJhandler
Events:
contactUsEvent:
Type: Api
Properties:
Path: /contact
Method: post
PJviewer:
Type: AWS::Serverless::Function
Properties:
FunctionName: PJviewer
Description: Invokes functions defined in PJ/viewer.js in project PJ-1-0-0.
Generated by Sigma.
CodeUri: s3://sam.artifacts.slappforge.com/package.zip
Handler: PJ/viewer.handler
Timeout: 60
Runtime: nodejs6.10
Policies:
- DynamoDBCrudPolicy:
TableName: contact_us
- LambdaInvokePolicy:
FunctionName: PJviewer
Events:
contactUsEvent:
Type: Api
Properties:
Path: /view
Method: get