atlantis plan doesnt support -target?

Created on 17 Dec 2019  路  1Comment  路  Source: runatlantis/atlantis

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.

question

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)

atlantis plan -- -target=google_compute_security_policy.my-resource

>All comments

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaahrdner picture gaahrdner  路  3Comments

majormoses picture majormoses  路  3Comments

rverma-jm picture rverma-jm  路  3Comments

kipkoan picture kipkoan  路  3Comments

tlkamp picture tlkamp  路  5Comments