cloudtools / cloudtools/troposphere
Passing Ref in userinfo.py
- Dominant language
- Python
- Stars
- 4.9k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
I have a little suggestion/idea for the 'from_file' method defined in ~/helpers/userdata.py
https://github.com/cloudtools/troposphere/blob/master/troposphere/helpers/userdata.py
The idea is to add troposphere function 'Ref' import and some script to it, so that objects like "Ref(RlySpecialObject)" get passed into .json script properly, like " {"Ref": "RlySpecialObject"} ".
That being, since specifically the user data method gets out of hand with its length way too often, that includes numerous cases of reference objects such as mentioned above.
The idea of reading the information from bash script already works wonders to its editability/non-blanket-ness-of-code, but the reference problem is too painful to do it manually as the script grows in length.
I'm looking into possibilities to solve this issue myself, but hopefully someone else has been, as well.
Could anyone have anything to share in this regard? Or is there a solution for this already?
Contributor guide
Assessment
This issue has not been assessed yet.