I have an instance created by an ASG. SGs are associated with the LB for public network access. I need to attach a SG to the instance for the service that is only available via private network. I figured the steps are ( using data resource) get the instance_id of the EC2 launched by the autoscale group. Find the primary ENI associated with the EC2 ( again data resource) and then attach the SG to that ENI adapater. Just wondering if this is the best way of doing it? Thanks