How to ignore a Destroy resource request from an Apply
By - 2seem
You can't easily exclude just a single resource from destruction but you can target individual resources during a plan/apply.
For example this would only update two resources, a module bucket and a vpc.
terraform apply -target=module.mystuff.aws_s3_bucket.test -target=aws_vpc.myvpc
Thanks, this worked.
Tried adding this but terraform apply would not go through because it wanted to destroy it. I lost error message but will try to post it.
You could try ignore changes as well
Do ignore changes = all or tags or user data or whatever is causing the destruction
more like terraform untaint in this case