In AWS, using Terraform I have launched certain instances running in private subnet. I have to install certain packages in the private instances. So i make a temporary associaton with a route table which is connected to internet gateway. After installation of the packages when i want to make the association of that particular subnet with the route table which is connected to NAT, it is throwing an error telling that route table association already exist. But if i go to aws console i'm able to do it manually. Is there any way on how can i do it using terraform?
Thank you in Advance.