From 008651d6565ccc0cb675cd4fa99e2f06bb549e2e Mon Sep 17 00:00:00 2001 From: Chase Douglas Date: Fri, 14 Aug 2020 10:56:14 -0700 Subject: [PATCH 1/4] ListLayers/ListLayerVersions support Layer ARNs --- doc_source/lambda-api-permissions-ref.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc_source/lambda-api-permissions-ref.md b/doc_source/lambda-api-permissions-ref.md index fdc14b48..9544fdb3 100644 --- a/doc_source/lambda-api-permissions-ref.md +++ b/doc_source/lambda-api-permissions-ref.md @@ -113,5 +113,4 @@ Layer actions let you restrict the layers that a user can manage or use with a f | Action | Resource | Condition | | --- | --- | --- | | [AddLayerVersionPermission](API_AddLayerVersionPermission.md) [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) [GetLayerVersion](API_GetLayerVersion.md) [GetLayerVersionPolicy](API_GetLayerVersionPolicy.md) [DeleteLayerVersion](API_DeleteLayerVersion.md) | Layer version | None | -| [PublishLayerVersion](API_PublishLayerVersion.md) | Layer | None | -| [ListLayers](API_ListLayers.md) [ListLayerVersions](API_ListLayerVersions.md) | `*` | None | \ No newline at end of file +| [PublishLayerVersion](API_PublishLayerVersion.md) [ListLayers](API_ListLayers.md) [ListLayerVersions](API_ListLayerVersions.md) | Layer | None | From 9d044cffab285a5f2257ca9621685f34534fb4b7 Mon Sep 17 00:00:00 2001 From: Chase Douglas Date: Wed, 19 Aug 2020 17:05:25 -0700 Subject: [PATCH 2/4] Revert ListLayers Resource specification to '*' This change was inadvertently made. --- doc_source/lambda-api-permissions-ref.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc_source/lambda-api-permissions-ref.md b/doc_source/lambda-api-permissions-ref.md index 9544fdb3..70f43730 100644 --- a/doc_source/lambda-api-permissions-ref.md +++ b/doc_source/lambda-api-permissions-ref.md @@ -113,4 +113,5 @@ Layer actions let you restrict the layers that a user can manage or use with a f | Action | Resource | Condition | | --- | --- | --- | | [AddLayerVersionPermission](API_AddLayerVersionPermission.md) [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) [GetLayerVersion](API_GetLayerVersion.md) [GetLayerVersionPolicy](API_GetLayerVersionPolicy.md) [DeleteLayerVersion](API_DeleteLayerVersion.md) | Layer version | None | -| [PublishLayerVersion](API_PublishLayerVersion.md) [ListLayers](API_ListLayers.md) [ListLayerVersions](API_ListLayerVersions.md) | Layer | None | +| [PublishLayerVersion](API_PublishLayerVersion.md) [ListLayerVersions](API_ListLayerVersions.md) | Layer | None | +| [ListLayers](API_ListLayers.md) | `*` | None | From e67914f039a1d5d8159507ce8ec631c9447f432a Mon Sep 17 00:00:00 2001 From: Michael Wunderlich Date: Tue, 13 Oct 2020 00:48:05 -0700 Subject: [PATCH 3/4] Update random-error custom resource wait time I saw a transient deployment error due to log group creation taking longer than usual. Increasing wait time before continuing to log group creation to 15s. --- sample-apps/error-processor/template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample-apps/error-processor/template.yml b/sample-apps/error-processor/template.yml index 7705f567..dae6e680 100644 --- a/sample-apps/error-processor/template.yml +++ b/sample-apps/error-processor/template.yml @@ -84,7 +84,7 @@ Resources: await Promise.all([ lambda.invoke({ FunctionName: functionName2 }).promise(), lambda.invoke({ FunctionName: functionName3 }).promise(), - new Promise(resolve => setTimeout(resolve, 10000)) + new Promise(resolve => setTimeout(resolve, 15000)) ]) // Set log retention on all log groups await Promise.all([ From 61c3f372067164a08174ca9e12015a014ccdcea8 Mon Sep 17 00:00:00 2001 From: Doug Schwartz Date: Fri, 15 Jan 2021 10:11:02 -0800 Subject: [PATCH 4/4] Fixed base64 error in invocation script --- sample-apps/blank-go/3-invoke.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample-apps/blank-go/3-invoke.sh b/sample-apps/blank-go/3-invoke.sh index 7c7dcfab..7bd198a1 100755 --- a/sample-apps/blank-go/3-invoke.sh +++ b/sample-apps/blank-go/3-invoke.sh @@ -3,7 +3,7 @@ set -eo pipefail FUNCTION=$(aws cloudformation describe-stack-resource --stack-name blank-go --logical-resource-id function --query 'StackResourceDetail.PhysicalResourceId' --output text) while true; do - aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json + aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json --cli-binary-format raw-in-base64-out cat out.json echo "" sleep 2