aws-cloudformation-templates icon indicating copy to clipboard operation
aws-cloudformation-templates copied to clipboard

cfnresponse.py helper does not accept "Reason" parameter

Open SHxKM opened this issue 2 years ago • 1 comments

The send function signature:

https://github.com/awslabs/aws-cloudformation-templates/blob/2415d1dd34bdbf50e3b009879f6ba754a043afdf/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py#L10

Does not allow its caller to pass a Reason, which according to AWS' documentation is required if the status is FAIL. Instead, it always returns a very generic and less useful message.

Is there any reason for this?

SHxKM avatar May 08 '22 08:05 SHxKM

This could be really helpful improvement, i dont understand why its not there yet..

kubo1060 avatar Apr 04 '23 11:04 kubo1060