Skip to content

Not authorized to perform lambda:GetLayerVersion on your resource #2

@GitHubDiom

Description

@GitHubDiom

I have an account that can fully access Amazon Lambda, and I try to deploy serverless-shell following the README

But it occurs unauthorized error when deploying the serverless function. details are in below.

export CONFIG_DIR=.; sed -i s,FUNCTION_ARN,$(./serverless-shell-2.2/deploy.sh -create | grep FunctionArn | awk '{print $2}' | sed s,[\"\,],,g),g config.properties

zsh: no matches found: s,[",],,g

An error occurred (AccessDeniedException) when calling the CreateFunction operation: User: arn:aws:iam::281655567048:root is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:us-east-1:667743079194:layer:serverless-bash:35 because no resource-based policy allows the lambda:GetLayerVersion action
sed: 1: "config.properties": command c expects \ followed by text

Should I change to another region to match the us-east-1 region? I am currently using region ap-southeast-1.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions