aws-secrets-manager-rotation-lambdas
aws-secrets-manager-rotation-lambdas copied to clipboard
Generic rotation template bug in finish_secret step
The finish_secret function has a bug in it if there is not a version found that is labeled as "AWSCURRENT".
If there is not a version found that is labeled as "AWSCURRENT", the code will set current_version as None. This will lead to update_secret_version_stage being called with RemoveFromVersionId as None. This results in a ParamValidationError being raised from the boto3 client.