Skip to content

Commit 5a84545

Browse files
committed
feat: publish to eu-west-1 region
1 parent c8c487f commit 5a84545

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

publish.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ LO_VERSION=6.1.0.0.alpha0
55
# It's 1 region for now since S3 bucket is there
66
REGIONS='
77
us-east-1
8+
eu-west-1
89
'
910

10-
aws s3 cp ./layer.zip s3://shelf-assets/libreoffice-lambda-layer/layer.zip
11+
aws s3 cp ./layer.zip s3://shelf-libreoffice-lambda-layer-us-east-1/layer.zip
12+
aws s3 cp ./layer.zip s3://shelf-libreoffice-lambda-layer-eu-west-1/layer.zip
1113

1214
for region in $REGIONS; do
1315
aws lambda add-layer-version-permission --region $region --layer-name libreoffice \
1416
--statement-id sid1 --action lambda:GetLayerVersion --principal '*' \
1517
--version-number $(aws lambda publish-layer-version --region $region --layer-name libreoffice \
1618
--description "LibreOffice ${LO_VERSION} binary" --query Version --output text \
17-
--content S3Bucket=shelf-assets,S3Key=libreoffice-lambda-layer/layer.zip)
19+
--content S3Bucket=shelf-libreoffice-lambda-layer-$region,S3Key=layer.zip)
1820
done

0 commit comments

Comments
 (0)