Pre-built FreeTDS binaries you can use to copy to other images
7.7K
Build and publish FreeTDS as an AWS Lambda layer.
In order to use the TinyTDS gem with ruby AWS Lambda Functions, we need to have access to FreeTDS binaries that AWS does not provide with its execution environment.
The solution is to use AWS Lambda Layers.
The provided deploy script builds FreeTDS on the same architecture that runs in AWS Lambda and, using the AWS CLI, publishes the artifact as an AWS Lambda layer for functions to use.
A Lambda deployment package is a .zip file that contains your code and any dependencies. The Lambda execution environment is based on a specific Amazon Linux AMI and kernel version. Any native binaries that are used in a Lambda deployment package must be compiled in this environment, and only 64-bit binaries are supported.
https://aws.amazon.com/premiumsupport/knowledge-center/lambda-linux-binary-package/
rake deployLayerArn as a layer property in your AWS SAM template.yaml file.# template.yaml
# SAM Template Specification
# - https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md
Resources:
CoolFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: cool-function
Layers:
- "arn string goes here"
Content type
Image
Digest
Size
152.3 MB
Last updated
over 5 years ago
docker pull veracross/freetds