Merge pull request #20590 from hashicorp/d-commands-parallelism-default

command: Consistency implement and document parallelism default of 10
This commit is contained in:
Brian Flad 2019-03-06 12:16:52 -05:00 committed by GitHub
commit b580f8ac2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 4 deletions

View File

@ -38,7 +38,7 @@ func (c *ImportCommand) Run(args []string) int {
}
cmdFlags := c.Meta.extendedFlagSet("import")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism")
cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path")
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")

View File

@ -23,7 +23,7 @@ func (c *RefreshCommand) Run(args []string) int {
cmdFlags := c.Meta.extendedFlagSet("refresh")
cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism")
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism")
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")

View File

@ -38,7 +38,8 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - Disables output with coloring.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph).
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults to
10.
* `-refresh=true` - Update the state for each resource prior to planning
and applying. This has no effect if a plan file is given directly to

View File

@ -48,6 +48,10 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - If specified, output won't contain any color.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-provider=provider` - Specified provider to use for import. The value should be a provider
alias in the form `TYPE.ALIAS`, such as "aws.eu". This defaults to the normal
provider based on the prefix of the resource being imported. You usually

View File

@ -60,7 +60,8 @@ The command-line flags are all optional. The list of available flags are:
plans below.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph).
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-refresh=true` - Update the state prior to checking for differences.

View File

@ -37,6 +37,10 @@ The command-line flags are all optional. The list of available flags are:
* `-no-color` - If specified, output won't contain any color.
* `-parallelism=n` - Limit the number of concurrent operation as Terraform
[walks the graph](/docs/internals/graph.html#walking-the-graph). Defaults
to 10.
* `-state=path` - Path to read and write the state file to. Defaults to "terraform.tfstate".
Ignored when [remote state](/docs/state/remote.html) is used.