jarpy / lambkin

CLI tool for generating and managing simple functions in AWS Lambda
Apache License 2.0
74 stars 12 forks source link

Improved get role arn method. #3

Closed gergo-debreczeni closed 7 years ago

gergo-debreczeni commented 7 years ago

In case the default role(lambda-basic-execution), or any role that gets passed in as parameter does not exist it would raise: botocore.exceptions.ClientError: An error occurred (NoSuchEntity) when calling the GetRole operation: The role with name lambda-basic-execution cannot be found. instead of botocore.exceptions.ClientError: An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: The role defined for the function cannot be assumed by Lambda.

jarpy commented 7 years ago

Much nicer, thanks!

Merged and released on PyPi as version 0.1.7.