Skip to content

Commit 26178cd

Browse files
authored
wire up tf auto approval from new configuration attribute (#1)
wire up tf auto approval from new configuration attribute
1 parent cf8799a commit 26178cd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/infrablocks/invoke_terraform/task_factory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Configuration:
2121
variables: tf.Variables
2222
workspace: Optional[str]
2323
init_configuration: InitConfiguration
24+
auto_approve: bool = True
2425

2526
@staticmethod
2627
def create_empty():
@@ -88,6 +89,7 @@ def apply(context: Context, arguments: invoke_factory.Arguments):
8889
terraform.apply(
8990
chdir=configuration.source_directory,
9091
vars=configuration.variables,
92+
autoapprove=configuration.auto_approve,
9193
)
9294

9395
return apply

0 commit comments

Comments
 (0)