Closed aroraabhinavcs closed 2 years ago
@aroraabhinavcs : The lambda has to be packaged with dependencies such as kinit. Please refer to this documentation for verifying your setup.
Thanks
On Fri, 7 Oct, 2022, 01:18 goyalya, @.***> wrote:
@aroraabhinavcs https://github.com/aroraabhinavcs : The lambda has to be packaged with dependencies such as kinit. Please refer to this https://aws.amazon.com/blogs/security/manage-your-aws-directory-service-credentials-using-aws-secrets-manager/ documentation for verifying your setup.
— Reply to this email directly, view it on GitHub https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/issues/88#issuecomment-1270601054, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALL222AFVREKINNKKWKCGMDWB4UKRANCNFSM55HDOVZQ . You are receiving this because you were mentioned.Message ID: <aws-samples/aws-secrets-manager-rotation-lambdas/issues/88/1270601054@ github.com>
I get this error while executing the lambda for SecretsManagerActiveDirectoryRotationSingleUser
Please suggest
2022-08-01T16:19:08.536+05:30Copy[ERROR] ValueError: execute_kinit_command: kinit failedTraceback (most recent call last): File "/var/task/lambda_function.py", line 136, in lambda_handler create_secret(secrets_manager_client, arn, token, directory_name, current_dict) File "/var/task/lambda_function.py", line 202, in create_secret execute_kinit_command(current_dict, None, directory_name) File "/var/task/lambda_function.py", line 446, in execute_kinit_command raise ValueError("execute_kinit_command: kinit failed") from Exception | [ERROR] ValueError: execute_kinit_command: kinit failed Traceback (most recent call last): File "/var/task/lambda_function.py", line 136, in lambda_handler create_secret(secrets_manager_client, arn, token, directory_name, current_dict) File "/var/task/lambda_function.py", line 202, in create_secret execute_kinit_command(current_dict, None, directory_name) File "/var/task/lambda_function.py", line 446, in execute_kinit_command raise ValueError("execute_kinit_command: kinit failed") from Exception -- | --