Skip to content

Commit adb41ba

Browse files
committed
added example to run in Lambda
1 parent 0f94b12 commit adb41ba

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
output.yaml

example/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
STACK_NAME ?= imagemagick-layer-example
22
IMAGE_MAGICK_STACK_NAME ?= imagemagick-layer
33

4-
IMAGEMAGICK_LAYER ?=(shell aws cloudformation describe-stacks --stack-name $(IMAGE_MAGICK_STACK_NAME) --query Stacks[].Outputs[].OutputValue --output text)
4+
IMAGEMAGICK_LAYER ?=$(shell aws cloudformation describe-stacks --stack-name $(IMAGE_MAGICK_STACK_NAME) --query Stacks[].Outputs[].OutputValue --output text)
55
SOURCES=$(shell find src/)
66

77
clean:
88
rm -rf build
99

10-
output.yml: template.yml $(SOURCES)
10+
output.yaml: template.yaml $(SOURCES)
1111
mkdir -p build
12-
aws cloudformation package --template-file $< --output-template-file $@ --s3-bucket $(DEPLOYMENT_BUCKET_NAME)
12+
aws cloudformation package --template-file $< --output-template-file $@ --s3-bucket $(DEPLOYMENT_BUCKET)
1313

14-
deploy: output.yml
14+
deploy: output.yaml
1515
aws cloudformation deploy --template-file $< --stack-name $(STACK_NAME) --capabilities CAPABILITY_IAM --parameter-overrides ImageMagickLayer=$(IMAGEMAGICK_LAYER)
1616
aws cloudformation describe-stacks --stack-name $(STACK_NAME) --query Stacks[].Outputs --output table
1717

File renamed without changes.

0 commit comments

Comments
 (0)