I'm using the parameter with CommaDelimitedList to pass the list of ARNs to the policy's "Resource" attribute.
Linter reads the values from parameter with new line symbol and throws following error:
E3510 '\narn:aws:iam::123456789123:role/bar\n' does not match '^(arn:(aws|aws-cn|aws-us-gov):[^:]+:[^:]*:(?:\\d{12}|\\*)?:.+|\\*)$' when 'Ref' is resolved
It is possible to pass list in this way to "Principal" attribute.
CloudFormation Lint Version
1.18.1
What operating system are you using?
Ubuntu
Describe the bug
I'm using the parameter with CommaDelimitedList to pass the list of ARNs to the policy's "Resource" attribute. Linter reads the values from parameter with new line symbol and throws following error:
E3510 '\narn:aws:iam::123456789123:role/bar\n' does not match '^(arn:(aws|aws-cn|aws-us-gov):[^:]+:[^:]*:(?:\\d{12}|\\*)?:.+|\\*)$' when 'Ref' is resolved
It is possible to pass list in this way to "Principal" attribute.Expected behavior
It is possible to pass list to Resource attribute
Reproduction template