diff --git a/command/import.go b/command/import.go index 0b6bde83e8..b566ee9fc5 100644 --- a/command/import.go +++ b/command/import.go @@ -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") diff --git a/command/refresh.go b/command/refresh.go index 79dab83c0a..db7ca9c434 100644 --- a/command/refresh.go +++ b/command/refresh.go @@ -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") diff --git a/website/docs/commands/apply.html.markdown b/website/docs/commands/apply.html.markdown index f8a63746dc..11c372469d 100644 --- a/website/docs/commands/apply.html.markdown +++ b/website/docs/commands/apply.html.markdown @@ -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 diff --git a/website/docs/commands/import.html.md b/website/docs/commands/import.html.md index 2662b72eda..e177641abd 100644 --- a/website/docs/commands/import.html.md +++ b/website/docs/commands/import.html.md @@ -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 diff --git a/website/docs/commands/plan.html.markdown b/website/docs/commands/plan.html.markdown index bb97a5bc6e..1cc63eb93e 100644 --- a/website/docs/commands/plan.html.markdown +++ b/website/docs/commands/plan.html.markdown @@ -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. diff --git a/website/docs/commands/refresh.html.markdown b/website/docs/commands/refresh.html.markdown index 659bea3724..c03e689119 100644 --- a/website/docs/commands/refresh.html.markdown +++ b/website/docs/commands/refresh.html.markdown @@ -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.