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 Support of -target option #1775

Open
andrew-zolotaryov-deel opened this issue Feb 9, 2025 · 1 comment
Open

Add Support of -target option #1775

andrew-zolotaryov-deel opened this issue Feb 9, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@andrew-zolotaryov-deel
Copy link

andrew-zolotaryov-deel commented Feb 9, 2025

Feature description 💡

Terraform has an option to run a plan/apply only on specific resources using -target option.
Example: terraform plan -target="module.s3_bucket or example using Atlantis: atlantis plan -- -target=module.s3_bucket

@andrew-zolotaryov-deel andrew-zolotaryov-deel added the enhancement New feature or request label Feb 9, 2025
@alfespa17 alfespa17 self-assigned this Feb 9, 2025
@alfespa17 alfespa17 added this to the 2.25.0 milestone Feb 9, 2025
@alfespa17
Copy link
Member

Maybe adding the target using the following environment variable inside the workspace could work

https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_cli_args-and-tf_cli_args_name

I have never tested by the way, but maybe it is a work around

@alfespa17 alfespa17 removed this from the 2.25.0 milestone Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants