Merge pull request #20590 from hashicorp/d-commands-parallelism-default
command: Consistency implement and document parallelism default of 10
This commit is contained in:
commit
b580f8ac2e
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue