-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a rule to avoid non-strings in template outputs #3725
Comments
Agreed. Looking into this. I thought we had covered this but I need to clean some of the logic up. Turns out if you do Its bringing up that this issue extends beyond just Output Value and also exists in Sub, Joins, etc. |
@kddejong after this change, it's not clear to me how we're supposed to Output for example an RDS DBCluster's Port, which is a number.
Unless that is something that changed very recently, CloudFormation used to happily accept |
@Dantemss and this is to a |
@kddejong sorry, my mistake. Our case is actually an |
Is this feature request related to a new rule or cfn-lint capabilities?
No response
Describe the feature you'd like to request
Recently I had an issue deploying to cloudformation and I found that the issue was an exported number value.
Therefore I suggest you to add a lint rule to check output values for references to numbered values (just for references to resource attributes).
Describe the solution you'd like
I assume the linter have access to the JSON schema definition and the solution should be a matter of reference solving and checking.
I think a check for the
GetAtt
function should be enough.Additional context
I was trying to deploy a MemoryDB cluster and a sibling stack was referencing the cluster port. I'm using the CDK.
Is this something that you'd be interested in working on?
Would this feature include a breaking change?
The text was updated successfully, but these errors were encountered: