-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Feature Request: gsub #1029
Comments
since adccaad
But yeah, |
@pmoust Not exactly correct, but close: And this is a decent idea. |
👍 |
This would be ridiculously useful in interpolation of files. |
config: add "replace" function [GH-1029]
Done, see PR above for docs as well. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I've run into a couple situations where I need to format an output string from resourceA as an input to resourceB.
As an example, suppose you want to create an aws_route53_record. The
name
of the record needs to be built from the public_ip of the attached node.If the public_ip is "12.34.56.78", the record's
name
has to be "foo-12-34-56-78".The only way I can think to do this now is to write a local-exec provisioner that does string manipulation, writes a json file, and shells out to
awscli
. Which isn't pretty.The text was updated successfully, but these errors were encountered: