Import existing vpc, sg and rules to terraform

183 Views Asked by At

Requirement - To import existing architecture to terraform cloud so that everything (create, update, delete) can be managed from terraform.

Issue: when I am importing SG group it's importing rules within that as well but I am not able to delete a single rule of the security group,

Similarly if I am importing sg rule I am not able to delete sg group.

Is there any other way to do this?

1

There are 1 best solutions below

1
On

You can import vpc, sg & sg rules all of them manually and then try to edit/update the sg /sg rule