You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update error mapping to catch when Lambda layer ARN regions do not match function region (#2216)
* Revert "add validation if layer arn region does not match function region (#2188)"
This reverts commit 4e97389.
* update error mapping to catch when Lambda layer ARN regions do not match function region
* update changeset
Copy file name to clipboardExpand all lines: packages/backend-deployer/src/cdk_error_mapper.test.ts
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,12 @@ const testErrorMappings = [
380
380
errorName: 'MissingDefineBackendError',
381
381
expectedDownstreamErrorMessage: undefined,
382
382
},
383
+
{
384
+
errorMessage: `User: <bootstrap-exec-role-arn> is not authorized to perform: lambda:GetLayerVersion on resource: <resource-arn> because no resource-based policy allows the lambda:GetLayerVersion action`,
385
+
expectedTopLevelErrorMessage: 'Unable to get Lambda layer version',
0 commit comments