cloudtools / cloudtools/troposphere

Passing Ref in userinfo.py

Open
#506 1 comment 6 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.