cfn-lint icon indicating copy to clipboard operation
cfn-lint copied to clipboard

TopicARN has to be an array of strings in AWS::AutoScaling::AutoScalingGroup NotificationConfiguration

Open ivorobioff opened this issue 1 year ago • 1 comments

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

Screenshot_25

Expected behavior

after running cfn-lint template.yaml no error has to be with the following configuration

Untitled

Reproduction template

unfortunately cannot provide one

ivorobioff avatar Oct 25 '23 18:10 ivorobioff

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.

kddejong avatar Oct 30 '23 16:10 kddejong