Created
October 28, 2020 10:19
-
-
Save kukielp/499f9ba816145f17eb4a294894eed4d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Globals: | |
Function: | |
Timeout: 900 | |
Resources: | |
AWSServerless: | |
Type: AWS::Serverless::Function | |
Properties: | |
CodeUri: ./cfusion/bin/dist/cf-aws-serverless.zip #Point to the deployment zip, relative to the current folder | |
Handler: coldfusion.serverless.handlers.cf.CFLambdaRequestStreamHandler::handleRequest #Handler for synchronous workflows. "handleEventRequest" is the method name for asynchronous workflows | |
Runtime: java11 | |
MemorySize: 3008 | |
Environment: | |
#Include the templateHandler environment variable only for asynchronous events | |
Variables: | |
eventHandler: Application::serverlessEvent #Returns the value obtained by invoking method "serverlessEvent" in "/Application.cfc" | |
#Include the following section only for synchronous events | |
Events: | |
GetResource: | |
Type: Api | |
Properties: | |
Path: /{proxy+} | |
Method: any | |
Outputs: | |
# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function | |
# Find out more about other implicit resources you can reference within SAM | |
# https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api | |
ACFAPI: | |
Description: "API Gateway endpoint URL for Prod stage for ACF Dump example" | |
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/index.cfm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment