Skip to content

Instantly share code, notes, and snippets.

@9oelM
Created March 21, 2021 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9oelM/16f2a64b2dcbf67cf0aa2f2baca002be to your computer and use it in GitHub Desktop.
Save 9oelM/16f2a64b2dcbf67cf0aa2f2baca002be to your computer and use it in GitHub Desktop.
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