Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit ccdc399

Browse files
committed
Add layer description and license
1 parent 9471fbc commit ccdc399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ for region in "${PHP71_REGIONS[@]}"; do
99
bucket_name="stackery-layers-${region}"
1010

1111
echo "Publishing Lambda Layer php71 in region ${region}..."
12-
version=$(aws --region $region lambda publish-layer-version --layer-name php71 --compatible-runtimes provided --license-info 'http://www.php.net/license/3_01.txt' --content "S3Bucket=$bucket_name,S3Key=${S3KEY}" --output text --query Version)
12+
# Must use --cli-input-json so AWS CLI doesn't attempt to fetch license URL
13+
version=$(aws --region $region lambda publish-layer-version --cli-input-json "{\"LayerName\": \"php71\",\"Description\": \"PHP 7.1 Web Server Lambda Runtime\",\"Content\": {\"S3Bucket\": \"${bucket_name}\",\"S3Key\": \"${S3KEY}\"},\"CompatibleRuntimes\": [\"provided\"],\"LicenseInfo\": \"http://www.php.net/license/3_01.txt\"}" --output text --query Version)
1314
echo "Published Lambda Layer php71 in region ${region} version ${version}"
1415

1516
echo "Setting public permissions on Lambda Layer php71 version ${version} in region ${region}..."

0 commit comments

Comments
 (0)