You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# AWS Lambda Layers for MySQL and MariaDB commands
2
+
3
+
These layers add the `mysql` client commands in the form of a layer to be used with [AWS Lambda](https://aws.amazon.com/lambda/).
4
+
5
+
This is useful for Lambda functions that need to run MySQL commands to quickly import data to a RDS server, for example. It can be easier than using the MySQL API in the language of your choice. Particularly useful in coordination with a [Bash lambda](https://github.com/gkrizek/bash-lambda-layer) layer.
6
+
7
+
The layers (in the form of zip files) are built in Docker using the official AmazonLinux image, to match the typicial Lambda runtime environment.
8
+
9
+
- The MySQL layer is built from the official source (v8.0.18)
10
+
- THe MariaDB layer is built from files in the official `mariadb` AmazonLinux package.
11
+
12
+
## Download
13
+
14
+
Pre-built zip archives that can be uploaded to your AWS account are available on the [releases](https://github.com/megastep/mysql-lambda/releases) page.
15
+
16
+
## Building the layers
17
+
18
+
If you have a working Docker setup, you just need to enter `make` to build both the MySQL and MariaDB layers. Alternatively:
19
+
20
+
-`make mysql` builds the MySQL variant from source.
21
+
-`make mariadb` builds the MariaDB variant from the pre-built packages.
22
+
23
+
Note that the MySQL 8.0 variant takes considerably longer to build from source.
0 commit comments