Skip to content

Commit bc45135

Browse files
Updated zip with version 11
1 parent 5c54765 commit bc45135

File tree

5 files changed

+43
-1
lines changed

5 files changed

+43
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

lambda-extensions/config/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// ExtensionName same as binary name or file name where main exists
1010
var ExtensionName = filepath.Base(os.Args[0])
11-
var layerVersion = "10"
11+
var layerVersion = "11"
1212

1313
// SumoLogicExtensionLayerVersionSuffix denotes the layer version published in AWS
1414
var SumoLogicExtensionLayerVersionSuffix string = fmt.Sprintf("%s-prod:%s", ExtensionName, layerVersion)

scripts/verify_layer_versions.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
LAYER_NAME="sumologic-extension-arm64"
4+
5+
AWS_REGIONS=(
6+
us-east-1
7+
us-east-2
8+
eu-north-1
9+
ap-south-1
10+
eu-west-3
11+
eu-west-2
12+
eu-south-1
13+
eu-west-1
14+
ap-northeast-2
15+
me-south-1
16+
ap-northeast-1
17+
sa-east-1
18+
ca-central-1
19+
ap-east-1
20+
ap-southeast-1
21+
ap-southeast-2
22+
eu-central-1
23+
us-west-1
24+
us-west-2
25+
)
26+
27+
echo "Fetching latest version of layer: $LAYER_NAME"
28+
echo "================================================="
29+
30+
for region in "${AWS_REGIONS[@]}"; do
31+
latest_version=$(aws lambda list-layer-versions \
32+
--layer-name "$LAYER_NAME" \
33+
--region "$region" \
34+
--query 'max_by(LayerVersions, &Version).Version' \
35+
--output text 2>/dev/null)
36+
37+
if [ "$latest_version" != "None" ] && [ -n "$latest_version" ]; then
38+
echo "Region: $region -> Latest version: $latest_version"
39+
else
40+
echo "Region: $region -> Layer not found"
41+
fi
42+
done

0 commit comments

Comments
 (0)