-
-
Save 9oelM/16f2a64b2dcbf67cf0aa2f2baca002be 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 | |
Description: > | |
hello api | |
Globals: | |
Function: | |
Timeout: 3 | |
Resources: | |
helloRoomFunction: | |
Type: AWS::Serverless::Function | |
Metadata: | |
DockerTag: nodejs14.x-v1 | |
DockerContext: ./packages/hello | |
Dockerfile: Dockerfile | |
Properties: | |
# will automatically use local one if testing on local | |
ImageUri: {your-aws-account-id}.dkr.ecr.{your-aws-region}.amazonaws.com/dev-hello | |
# Note: If the PackageType property is set to Image, then either ImageUri is required, | |
# or you must or you must build your application with necessary Metadata entries in the AWS SAM template file. | |
# For more information, see Building applications. | |
PackageType: Image | |
FunctionName: HelloInEngFunction | |
Events: | |
helloRoom: | |
Type: Api | |
Properties: | |
Path: /hello | |
Method: get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment