Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

deployment fails #37

Closed
Closed

Description

@shaddu

gettiing below error while deploying the function

botocore.exceptions.ClientError: An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The role defi
ned for the function cannot be assumed by Lambda.

deployment fails after this message
Starting new HTTPS connection (1): lambda.us-east-1.amazonaws.com
Creating your new Lambda function
Starting new HTTPS connection (1): sts.amazonaws.com
Starting new HTTPS connection (1): lambda.us-east-1.amazonaws.com

Activity

  1. notexistence commented on May 19, 2017

    @notexistence

    I have the same problem. Is there any way to work around this?

  2. shaddu commented on May 19, 2017

    @shaddu
    Author

    for me it worked when i added a new AWS IAM role = 'lambda_basic_execution' with lambda execution rights

  3. jmeekhof commented on May 22, 2017

    @jmeekhof
    Collaborator

    @shaddu Can you elaborate on this a bit? I've created a role, but how do we tell our deployer which role to use?

  4. shaddu commented on May 23, 2017

    @shaddu
    Author

    @jmeekhof basically that role is expected in python-lambda execution. So if u manually create it and then use lambda deploy. It should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions