cfn-lint
cfn-lint copied to clipboard
TopicARN has to be an array of strings in AWS::AutoScaling::AutoScalingGroup NotificationConfiguration
CloudFormation Lint Version
0.83.0
What operating system are you using?
ubuntu
Describe the bug
Even though the official documentation tells that TopicARM has to be an array of string the us-east-1.json specifies that it has to be string.
Official Documentation https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-notificationconfiguration.html#cfn-autoscaling-autoscalinggroup-notificationconfiguration-topicarn
Expected behavior
after running cfn-lint template.yaml no error has to be with the following configuration
Reproduction template
unfortunately cannot provide one
Yea this is a weird scenario. It accepts both as long as the list is just one. #2914
This will be fixed in v1 as we be able to support multiple types. At this time the CloudFormation specs we rely on only support one type. This type was originally a string so that is why we are favoring that type over the list.
This also affects the docs as the docs will pick one type.