Skip to content

Commit a63d7f0

Browse files
committed
Add parallelism input for refresh
1 parent 1b37d35 commit a63d7f0

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

docs-gen/actions/refresh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from environment_variables.TERRAFORM_SSH_KEY import TERRAFORM_SSH_KEY
99
from inputs.backend_config import backend_config
1010
from inputs.backend_config_file import backend_config_file
11+
from inputs.parallelism import parallelism
1112
from inputs.path import path
1213
from inputs.var_file import var_file
1314
from inputs.variables import variables
@@ -35,6 +36,7 @@
3536
List of resources to target, one per line.
3637
The refresh will be limited to these resources and their dependencies.
3738
'''),
39+
parallelism
3840
],
3941
outputs=[
4042
dataclasses.replace(failure_reason, description='''

terraform-refresh/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ This will synchronise the Terraform state with the actual resources, but will no
9797
- Type: string
9898
- Optional
9999

100+
* `parallelism`
101+
102+
Limit the number of concurrent operations
103+
104+
- Type: number
105+
- Optional
106+
- Default: The Terraform default (10).
107+
100108
## Outputs
101109

102110
* `failure-reason`

terraform-refresh/action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ inputs:
3838
The refresh will be limited to these resources and their dependencies.
3939
required: false
4040
default: ""
41+
parallelism:
42+
description: Limit the number of concurrent operations
43+
required: false
44+
default: "0"
4145

4246
outputs:
4347
failure-reason:

tofu-refresh/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ This will synchronise the OpenTofu state with the actual resources, but will not
9797
- Type: string
9898
- Optional
9999

100+
* `parallelism`
101+
102+
Limit the number of concurrent operations
103+
104+
- Type: number
105+
- Optional
106+
- Default: The OpenTofu default (10).
107+
100108
## Outputs
101109

102110
* `failure-reason`

tofu-refresh/action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ inputs:
3838
The refresh will be limited to these resources and their dependencies.
3939
required: false
4040
default: ""
41+
parallelism:
42+
description: Limit the number of concurrent operations
43+
required: false
44+
default: "0"
4145

4246
outputs:
4347
failure-reason:

0 commit comments

Comments
 (0)