-
Notifications
You must be signed in to change notification settings - Fork 47
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
Ability to pass user data as a parameter. #104
Comments
👍 to this idea -- it would be nice to have UserData content extracted to a separate file. For this to be most useful, the content of the would still need to be parsed by CloudFormation, in order to resolve intrinsic functions ( |
I saw an interesting solution to this in a sparkleformation issue: sparkleformation/sparkle_formation#54 (comment) It enables separate user data files while being able to use ERB to call sparkle functions inside that file like |
@stevehodgkiss that's an interesting approach, although it's a shame that it only works with Sparkle. I'd love to see a more generic approach if possible (though I don't currently see how).
About the only idea I have is to create a grammar of some kind to allow embedding CF references/functions inline in the script, then replacing them with closequote-var-openquote: |
I think the approach/code used in #117 could be used in JSON/YAML templates quite easily too, we'd just need to run it through the same Erubis context. It could look like this:
|
Requesting the ability to pass user data as parameter to the stack instead of having to write in inline in the template.
Something like
The text was updated successfully, but these errors were encountered: