File tree Expand file tree Collapse file tree 2 files changed +20
-14
lines changed Expand file tree Collapse file tree 2 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,18 @@ STACK_NAME ?= imagemagick-layer
27
27
28
28
result/bin/identify : all
29
29
30
- layer.zip : result/bin/identify
30
+ build/ layer.zip : result/bin/identify build
31
31
# imagemagick has a ton of symlinks, and just using the source dir in the template
32
32
# would cause all these to get packaged as individual files.
33
33
# (https://github.com/aws/aws-cli/issues/2900)
34
34
#
35
35
# This is why we zip outside, using -y to store them as symlinks
36
36
37
- cd result && zip -ry ../layer.zip *
37
+ cd result && zip -ry $( PROJECT_ROOT ) $@ *
38
38
39
- output.yaml : template.yaml result/bin/identify
39
+ build/ output.yaml : template.yaml build/layer.zip
40
40
aws cloudformation package --template $< --s3-bucket $(DEPLOYMENT_BUCKET ) --output-template-file $@
41
41
42
- deploy : output.yaml
42
+ deploy : build/ output.yaml
43
43
aws cloudformation deploy --template $< --stack-name $(STACK_NAME )
44
+ aws cloudformation describe-stacks --stack-name $(STACK_NAME ) --query Stacks[].Outputs --output table
Original file line number Diff line number Diff line change
1
+ AWSTemplateFormatVersion : 2010-09-09
1
2
Transform : AWS::Serverless-2016-10-31
3
+ Description : >
4
+ Static build of ImageMagick for AWS Linux 2,
5
+ including convert, mogrify and identify tools
6
+ and support for jpeg, gif, png, tiff and webm formats.
7
+
8
+ Check out https://github.com/serverlesspub/imagemagick-aws-lambda-2
9
+ for more information.
2
10
Resources :
3
11
ImageMagickLayer :
4
12
Type : AWS::Serverless::LayerVersion
5
13
Properties :
6
14
LayerName : image-magick
7
- Description : >
8
-
9
- Static build of ImageMagick for AWS Linux 2,
10
- including convert, mogrify and identify tools
11
- and support for jpeg, gif, png, tiff and webm formats.
12
-
13
- Check out https://github.com/serverlesspub/imagemagick-aws-lambda-2
14
- for more information.
15
-
16
- ContentUri : layer.zip
15
+ Description : Static build of ImageMagick for AWS Linux 2,
16
+ ContentUri : build/layer.zip
17
17
CompatibleRuntimes :
18
18
- nodejs10.x
19
19
LicenseInfo : https://imagemagick.org/script/license.php
20
20
RetentionPolicy : Retain
21
+
22
+ Outputs :
23
+ LayerVersion :
24
+ Description : Layer ARN Reference
25
+ Value : !Ref ImageMagickLayer
You can’t perform that action at this time.
0 commit comments