We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed5130 commit 8221a36Copy full SHA for 8221a36
publish.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+FFPMEG_VERSION=4.1.3
4
+LAYER_NAME='ffmpeg'
5
6
+REGIONS='
7
+eu-west-1
8
+'
9
+PROFILE='dev'
10
11
+for region in $REGIONS; do
12
+ aws lambda add-layer-version-permission --region $region --layer-name $LAYER_NAME \
13
+ --statement-id sid1 --action lambda:GetLayerVersion --principal '*' \
14
+ --version-number $(aws lambda publish-layer-version --region $region --layer-name $LAYER_NAME --zip-file fileb://layer.zip \
15
+ --description "FFMPEG ${GIT_VERSION} binaries" --query Version --output text --profile $PROFILE) --profile $PROFILE
16
+done
0 commit comments