Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a great read, but I always seem to run into cases where I need to define something like a security group and then reference it when deploying ec2 instances. I'd love to decouple to reduce my plan time, but I haven't figured a way out as of yet.

To be fair, I haven't used terraform -chdir yet.




-chdir is useful, but nothing to do with this (it's literally just cd before running command).

As sibling said, use data source to read remote state outputs.


not sure what you mean here.

Do you use the same security group for all of your instances?

i am usually creating a security group per group of related ec2 instances.


you can pull it in via a data source, but then of course this creates a coupling between multiple modules/state files.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: