hello, maybe aws changed something, but for me this is not working for cross-account lambda layers
This is the error I get when trying to deploy my serverless stack
arn:aws:sts::xxxxxxx:assumed-role/zzzzzzz/zzzzzzz is not authorized to perform: lambda:ListLayerVersions on resource: arn:aws:lambda:ap-southeast-2:yyyyyyyy:layer:layer-name because no resource-based policy allows the lambda:ListLayerVersions action
we get this error: An error occurred (ValidationException) when calling the AddLayerVersionPermission operation: 1 validation error detected: Value 'ListLayerVersions' at 'action' failed to satisfy constraint: Member must satisfy regular expression pattern: lambda:GetLayerVersion, so not sure how we can fix that error with lambda:ListLayerVersions if we are only allowed to add lambda:GetLayerVersion
hello, maybe aws changed something, but for me this is not working for cross-account lambda layers
This is the error I get when trying to deploy my serverless stack
arn:aws:sts::xxxxxxx:assumed-role/zzzzzzz/zzzzzzz
is not authorized to perform:lambda:ListLayerVersions
on resource:arn:aws:lambda:ap-southeast-2:yyyyyyyy:layer:layer-name
because no resource-based policy allows thelambda:ListLayerVersions
actionTo try and fix the above error I have tried:
we get this error:
An error occurred (ValidationException) when calling the AddLayerVersionPermission operation: 1 validation error detected: Value 'ListLayerVersions' at 'action' failed to satisfy constraint: Member must satisfy regular expression pattern: lambda:GetLayerVersion
, so not sure how we can fix that error withlambda:ListLayerVersions
if we are only allowed to addlambda:GetLayerVersion