I've set my pipeline to invoke a AWS Lamba function. After a runtime of 10 minutes, this is the error I get:
Action execution failed The AWS Lambda function addAMIToAutoScalingLC failed to return a result. Check the function to verify that it has permission to call the PutJobSuccessResult action and that it made a call to PutJobSuccessResult.
The logs themselves do not contain relevant informations.
I think my IAM permissions are set-up properly:
- The Lambda function is run with a role that has:
AWSLambdaFullAccess,AWSCodePipelineFullAccess. - The CodePipeline is I think run with the role
AWS-CodePipeline-Servicethat has:AWSLambdaFullAccess
I think that my script makes the call to PutJobSuccessResult because when I test the script I get a Execution result: succeeded.
My script does not need any parameters so I have not provided any User Parameter in CodePipeline.
What should I do to further investigate?