aws-cloudformation/aws-cloudformation-resource-providers-cloudformation

Improve Error Message on Stackset Resource

ConnorKirk opened this issue · 2 comments

Hi!

When trying out the AWS::CloudFormation::Stackset resource, my deployment fails.

The error is my fault. I believe the error message could be improved. My understanding of the error message is that the Stackset resource does not match the schema definition. In this case, two required properties were missing.
I would appreciate a more informative explanation of where it is wrong, as other resources provide.

image

If possible, could you improve the error message returned by the resource in this scenario?

Agreed, but I actually think this shouldn't be solved at the resource provider level
I believe this is a CloudFormation platform wide issue with resource schema validation messages, especially combined schemas

"oneOf": [
{
"required": [
"TemplateURL",
"StackSetName",
"PermissionModel"
]
},
{
"required": [
"TemplateBody",
"StackSetName",
"PermissionModel"
]
}
],

Interesting, thanks Pat! I guess this isn't a change I can make a PR for then 😢
I'll close this issue for now.