I have a lambda function (lambda-get-details) created using the below IAM role in Account-A Role name: lambdarole { "Version": "2012-10-17", "…