Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gal-shraga opened this issue Dec 19, 2024 · 1 comment
Labels
duplicate issue closed because another issue already tracks this problem enhancement

Comments

@gal-shraga
Copy link

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

@gal-shraga gal-shraga added enhancement new new issue not yet triaged labels Dec 19, 2024
@jbardin
Copy link
Member

jbardin commented Dec 19, 2024

Duplicate of #2253

@jbardin jbardin marked this as a duplicate of #2253 Dec 19, 2024
@jbardin jbardin closed this as completed Dec 19, 2024
@crw crw added duplicate issue closed because another issue already tracks this problem and removed new new issue not yet triaged labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate issue closed because another issue already tracks this problem enhancement
Projects
None yet
Development

No branches or pull requests

3 participants