Retain tags of imported resource

Hi Team,

I’ve imported VPC and when I execute template, it is deleting existing tags of VPC resource.
How can we retain existing tags of imported resource while executing terraform apply.


You need to ensure your code contains all the correct tags. This code is the source of truth, so needs to be exactly what you are wanting. If resources diverge from what the code says they will be adjusted to match the next time terraform apply is run.