-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: new GPG binaries don't work on Node 14 Runtime
The Node 14 runtime is based on Amazon Linux 2, but these GPG binaries require Amazon Linux 2023. Move the runtime to Node 20.
- Loading branch information
Showing
7 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
This directory contains ZIP files that are used as Lambda layers by our custom resources | ||
(private-key, pgp-secret and certificate-signing-request). | ||
Those Lambdas shell out to the `openssl` and `gpg` tools, | ||
which are not shipped with Node Lambda version older than 8. | ||
This directory contains ZIP files that are used as Lambda layers by our custom | ||
resources (private-key, pgp-secret and certificate-signing-request). Those | ||
Lambdas shell out to the `openssl` and `gpg`, `gpg-agent` tools, which are not | ||
shipped with Node Lambda runtimes (actually `gpg` is, but `gpg-agent` is not...) | ||
|
||
If you ever need to update these, | ||
unzip these files, add any necessary binaries to it, | ||
and then zip them back up again. | ||
If you ever need to update these, unzip these files, add any necessary binaries | ||
to it, and then zip them back up again. | ||
|
||
The binaries contained in these files were downloaded from an EC2 instance | ||
running Amazon Linux 2. | ||
running Amazon Linux 2023. | ||
|
||
N.B: | ||
|
||
- Make sure the binaries are copied from a version of Amazon Linux that matches | ||
the Lambda Runtime version that is being used, see here: | ||
<https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html>. | ||
- Make sure that the file structure in the ZIP file does not contain an extra | ||
directory, but looks like: | ||
- `gpg` | ||
- `lib/libgcrypt.so.X` | ||
- etc. | ||
- `gpg` is probably linked against the major version dependencies only, so it will | ||
depend on `libgcrypt.so.8` (and not `libgcrypt.so.8.4.1`). Confirm with `ldd` and | ||
rename the files if necessary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters