Skip to content

Add "-exclude-target" flag to terraform commands that support the "-target" flag #36239

Description

@gal-shraga

Terraform Version

1.3.6

Use Cases

When fixing a broken terraform state, sometimes I have a very complicated terraform state and I see a resource that I am not familiar with, but I do want to apply all of the targets except that one.

Attempted Solutions

When I have the following targets: target1, target2, target3, etc. and I do not want to apply specifically target 12, I used terraform apply -target=target1 -target=target2 -target=target3... where in an ideal case I would just use terraform apply -exclude-target=target12.

Proposal

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateissue closed because another issue already tracks this problemenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions