From 5a9de0b877c58105631d222e62d3a3e56173f223 Mon Sep 17 00:00:00 2001 From: 8naama Date: Thu, 9 May 2024 16:15:50 +0300 Subject: [PATCH] add arm64 architcture support --- logzio-lambda-extensions-logs/README.md | 21 +++++++++++++++++++ .../build-arm-zip.sh | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 logzio-lambda-extensions-logs/build-arm-zip.sh diff --git a/logzio-lambda-extensions-logs/README.md b/logzio-lambda-extensions-logs/README.md index 5fc5096..b572554 100644 --- a/logzio-lambda-extensions-logs/README.md +++ b/logzio-lambda-extensions-logs/README.md @@ -178,6 +178,7 @@ message_nested.field2: val2 | `CUSTOM_FIELDS` | Include additional fields with every message sent, formatted as `fieldName1=fieldValue1,fieldName2=fieldValue2` (**NO SPACES**). A custom key that clashes with a key from the log itself will be ignored. | - | ### ARNs +## AMD64 Architecture | Region Name | Region Code | AWS ARN | |---------------------------|------------------|--------------------------------------------------------------------------------| @@ -199,6 +200,26 @@ message_nested.field2: val2 | Europe (London) | `eu-west-2` | `arn:aws:lambda:eu-west-2:486140753397:layer:LogzioLambdaExtensionLogs:3` | | Europe (Paris) | `eu-west-3` | `arn:aws:lambda:eu-west-3:486140753397:layer:LogzioLambdaExtensionLogs:2` | +## ARM64 Architecture +| Region Name | Region Code | AWS ARN | +|---------------------------|------------------|--------------------------------------------------------------------------------| +| US East (N. Virginia) | `us-east-1` | `arn:aws:lambda:us-east-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| US East (Ohio) | `us-east-2` | `arn:aws:lambda:us-east-2:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| US West (N. California) | `us-west-1` | `arn:aws:lambda:us-west-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| US West (Oregon) | `us-west-2` | `arn:aws:lambda:us-west-2:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Europe (Frankfurt) | `eu-central-1` | `arn:aws:lambda:eu-central-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Europe (Ireland) | `eu-west-1` | `arn:aws:lambda:eu-west-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Europe (Stockholm) | `eu-north-1` | `arn:aws:lambda:eu-north-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Sydney) | `ap-southeast-2` | `arn:aws:lambda:ap-southeast-2:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Canada (Central) | `ca-central-1` | `arn:aws:lambda:ca-central-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| South America (São Paulo) | `sa-east-1` | `arn:aws:lambda:sa-east-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Tokyo) | `ap-northeast-1` | `arn:aws:lambda:ap-northeast-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Singapore) | `ap-southeast-1` | `arn:aws:lambda:ap-southeast-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Mumbai) | `ap-south-1` | `arn:aws:lambda:ap-south-1:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Osaka) | `ap-northeast-3` | `arn:aws:lambda:ap-northeast-3:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Asia Pacific (Seoul) | `ap-northeast-2` | `arn:aws:lambda:ap-northeast-2:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Europe (London) | `eu-west-2` | `arn:aws:lambda:eu-west-2:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | +| Europe (Paris) | `eu-west-3` | `arn:aws:lambda:eu-west-3:486140753397:layer:LogzioLambdaExtensionLogsArm:1` | ### Lambda extension versions diff --git a/logzio-lambda-extensions-logs/build-arm-zip.sh b/logzio-lambda-extensions-logs/build-arm-zip.sh new file mode 100644 index 0000000..42edd14 --- /dev/null +++ b/logzio-lambda-extensions-logs/build-arm-zip.sh @@ -0,0 +1,4 @@ +env GOOS=linux GOARCH=arm64 go build -o bin/extensions/logzio-lambda-extensions-logs main.go +chmod +x bin/extensions/logzio-lambda-extensions-logs +cd bin +zip -r extension.zip extensions/ \ No newline at end of file