Confirmed I have a resource named google_compute_security_policy.my-resource
Ran atlantis plan -target=google_compute_security_policy.my-resource
Got this error. According to the response plan does not support target? its running terraform v0.11.14 though which does support -target for plan
Error: unknown shorthand flag: 't' in -target=google_compute_security_policy.my-resource.
Usage of plan:
-d, --dir string Which directory to run plan in relative to root of repo,
ex. 'child/dir'.
-p, --project string Which project to run plan for. Refers to the name of the
project configured in atlantis.yaml. Cannot be used at
same time as workspace or dir flags.
--verbose Append Atlantis log to comment.
-w, --workspace string Switch to this Terraform workspace before planning.
Hi, you need to use -- to separate the terraform flags from the atlantis flags (see https://www.runatlantis.io/docs/using-atlantis.html#additional-terraform-flags)
atlantis plan -- -target=google_compute_security_policy.my-resource
Most helpful comment
Hi, you need to use
--to separate the terraform flags from the atlantis flags (see https://www.runatlantis.io/docs/using-atlantis.html#additional-terraform-flags)