Skip to content

Instantly share code, notes, and snippets.

@paschmann
Created May 23, 2024 18:56
Show Gist options
  • Save paschmann/4f2439617894a292f83c6533dc1628b8 to your computer and use it in GitHub Desktop.
Save paschmann/4f2439617894a292f83c6533dc1628b8 to your computer and use it in GitHub Desktop.
# This AWS SAM template has been generated from your function's configuration. If
# your function has one or more triggers, note that the AWS resources associated
# with these triggers aren't fully specified in this template and include
# placeholder values. Open this template in AWS Application Composer or your
# favorite IDE and modify it to specify a serverless application with other AWS
# resources.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: An AWS Serverless Application Model template describing your function.
Resources:
opengraphapi:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Description: A Open Graph API
MemorySize: 128
Timeout: 10
Handler: index.handler
Runtime: nodejs4.3
Architectures:
- x86_64
EphemeralStorage:
Size: 512
EventInvokeConfig:
MaximumEventAgeInSeconds: 21600
MaximumRetryAttempts: 2
PackageType: Zip
Policies:
- Statement:
- Effect: Allow
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: arn:aws:logs:*:*:*
- Effect: Allow
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: arn:aws:logs:*:*:*
SnapStart:
ApplyOn: None
Events:
Api1:
Type: Api
Properties:
Path: /opengraphapi
Method: POST
RuntimeManagementConfig:
UpdateRuntimeOn: Auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment