Commit 5aef9665 authored by Gojko Adzic's avatar Gojko Adzic

fix layer id

parent c6fcfc59
BASE_NAME=ffmpeg BASE_NAME=ffmpeg
DEPLOYMENT_BUCKET_NAME := desole-packaging DEPLOYMENT_BUCKET_NAME := desole-packaging
DEPLOYMENT_KEY := $(shell echo $(BASE_NAME)-$$RANDOM.zip) DEPLOYMENT_KEY := $(shell echo $(BASE_NAME)-$$RANDOM.zip)
STACK_NAME := $(BASE_NAME)-layer STACK_NAME := $(BASE_NAME)-lambda-layer
clean: clean:
rm -rf build rm -rf build
...@@ -10,7 +10,7 @@ build/bin/ffmpeg: ...@@ -10,7 +10,7 @@ build/bin/ffmpeg:
mkdir -p build/bin mkdir -p build/bin
rm -rf build/ffmpeg* rm -rf build/ffmpeg*
cd build; \ cd build; \
curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-i686-static.tar.xz | tar x curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz | tar x
mv build/ffmpeg*/ffmpeg build/ffmpeg*/ffprobe build/bin mv build/ffmpeg*/ffmpeg build/ffmpeg*/ffprobe build/bin
build/layer.zip: build/bin/ffmpeg build/layer.zip: build/bin/ffmpeg
......
...@@ -4,7 +4,7 @@ This is an AWS Lambda layer containing statically linked `ffmpeg` and `ffprobe` ...@@ -4,7 +4,7 @@ This is an AWS Lambda layer containing statically linked `ffmpeg` and `ffprobe`
## Use within Lambda ## Use within Lambda
You can use a pre-deployed ARN: `arn:aws:lambda:us-east-1:145266761615:layer:ffmpeg:1` or deploy yourself -- edit Makefile to set your deployment bucket etc, then just run `make deploy`. You can use a pre-deployed ARN: `arn:aws:lambda:us-east-1:145266761615:layer:ffmpeg:3` or deploy yourself -- edit Makefile to set your deployment bucket etc, then just run `make deploy`.
The binares will be in `/opt/bin/ffmpeg` and `/opt/bin/ffprobe` inside your Lambda container. The binares will be in `/opt/bin/ffmpeg` and `/opt/bin/ffprobe` inside your Lambda container.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment