-
Notifications
You must be signed in to change notification settings - Fork 38
FN::GetAtt can return an array #134
Comments
It may be possible to implement this. Example from spec.
This has a type which can then be parsed, so we can say if list of string, lets output a couple of elements of type string. Should solve the majority of issues surrounding this. Code which would require changing: Lines 1056 to 1067 in 78c82a5
|
If I'm not mistaken, this is the root cause of #95. |
@RazzM13 Yes and no. Indeed GetAtt should be capable of returning an array when required, however, with a Custom:: resource we have no idea if the GetAtt should be a string or array, as it's decided at runtime by the invoked Lambda function. |
PR: #139 I left attributes on |
First: Great tool, it really removes some of the pain of dealing with CloudFormation.
I have a situation where I'm creating a subdomain in Route 53 for an environment as a hosted zone, and then creating a NS delegation in another preexisting hosted zone to point to it. The JSON template for the delegation
RecordSet
comes out as follows:Although the template is valid and will create successfully,
cfn-lint
reports 1 critical:In this case,
ResourceRecords
is expecting an array of strings, which is what theFn:GetAtt
returns forNameServers
. Obviouslycfn-lint
can't be expected to know what type the intrinsic function returns, making validation difficult if not impossible: should there be a mechanism to 'ignore' certain errors, or can I help come up with a better way to handle this?The text was updated successfully, but these errors were encountered: