ljfranklin/terraform-resource

how can I use the "-target=resource" feature of terraform command with this resource in a pipeline?

Closed this issue · 2 comments

how can I use the "-target=resource" feature of terraform command with this resource in a pipeline?

The resource doesn't support use of the -target flag. According to the Terraform docs that flag is only intended to be used in exceptional circumstances to unwedge a deployment, using it in your pipeline seems like an anti-pattern. The docs suggest breaking your configuration down into smaller pieces that can be applied individually, I'd give that a try rather than relying on the -target flag.

Make sense. I missed the details of that option. Regular use may cause inconsistencies.