-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Template error: Fn::Select cannot select nonexistent value at index... #30308
Comments
What are you trying to do with that template using CDK? Can you share your CDK code and the commands you executed? |
Well I do something like this:
|
in my case I was already able to read the template manually and find the location of !Select function and to review the logic. Currently I was able to solve the error itself. But this ticket is just about the experience. I would prefer if cdk would already pointed me to the exact place in the file which was causing the error. |
Totally agree. Let's make it a feature request for CfnInclude for verbose log. |
Describe the feature
Currently when applying template which is using functions like !Select we may have an error like this:
This is not clear what is going wrong here. We have a large template and it would be great if cdk would print more informative message pointing to the exact place in the file causing the error.
Do you think it's possible? Thanks!
Use Case
Applying published template from yaml file using functions like !Select
Proposed Solution
Printing line number of the template file for the failed function would be already enough. Ideally there must be some debug/trace feature allowing us to debug template execution.
Other Information
No response
Acknowledgements
CDK version used
2.142.1 (build ed4e152)
Environment details (OS name and version, etc.)
Ubuntu 23.10
The text was updated successfully, but these errors were encountered: