You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
Right now, terraforming ec2 will produce a hardcoded list of related resources' internal AWS identifiers. But terraform supports variables, which allow you to, say, create security groups and ec2 instances on one terraform run, as opposed to creating these dependencies first, then update the ec2 resources' security group IDs in your aws_instance blocks.
terraforming should support importing connected resources, such as security groups, and connecting them to parent resources using variables.
The text was updated successfully, but these errors were encountered:
I'm sorry but I have no plan to implement this feature right now.
If you really need this feature, I always welcome pull request
Terraforming generates one resource at every command execution, not generate multiple resources at once. I think it is not a good way to include other resource dependencies to generated result.
Moreover, this feature increases a complexity of codes... I'd like to keep it simple.
@dtan4 I'm aware that you have no plans to support this feature, but this would be incredibly useful. It's rather difficult to have to go in and manually replace hardcoded references with variables, especially when you have something like 20 of them - this feature would allow for a truly exportable and, more importantly, portable infrastructure. I'd find working on this feature to be rather interesting if I can get my ruby chops up to snuff.
Right now,
terraforming ec2
will produce a hardcoded list of related resources' internal AWS identifiers. But terraform supports variables, which allow you to, say, create security groups and ec2 instances on oneterraform
run, as opposed to creating these dependencies first, then update the ec2 resources' security group IDs in youraws_instance
blocks.terraforming
should support importing connected resources, such as security groups, and connecting them to parent resources using variables.The text was updated successfully, but these errors were encountered: