Skip to content

Instantly share code, notes, and snippets.

@foontzoot
Created June 14, 2023 13:25
Show Gist options
  • Save foontzoot/66ceec1025ba926311456927199d05d6 to your computer and use it in GitHub Desktop.
Save foontzoot/66ceec1025ba926311456927199d05d6 to your computer and use it in GitHub Desktop.
template for .NET 6 Lambda serverless application running on ARM64 processors
{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "An AWS Serverless Application.",
"Resources": {
"Get": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "LambdaServerlessApplicationOnArm64::LambdaServerlessApplicationOnArm64.Functions::Get",
"Architectures": ["arm64"],
"Runtime": "dotnet6",
"CodeUri": "",
"MemorySize": 256,
"Timeout": 30,
"Role": null,
"Policies": [
"AWSLambdaBasicExecutionRole"
],
"Events": {
"RootGet": {
"Type": "Api",
"Properties": {
"Path": "/",
"Method": "GET"
}
}
}
}
}
},
"Outputs": {
"ApiURL": {
"Description": "API endpoint URL for Prod environment",
"Value": {
"Fn::Sub": "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment