Skip to content

Commit b69fec4

Browse files
author
Bob Strahan
committed
feat: bump version to 0.4.5 and fix CloudFormation rollback parameter
1 parent cf4fc7f commit b69fec4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

idp_cli/idp_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _build_from_local_code(from_code_dir: str, region: str, stack_name: str) ->
142142

143143

144144
@click.group()
145-
@click.version_option(version="0.4.4")
145+
@click.version_option(version="0.4.5")
146146
def cli():
147147
"""
148148
IDP CLI - Batch document processing for IDP Accelerator

idp_cli/idp_cli/deployer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def deploy_stack(
107107
operation = "UPDATE"
108108
else:
109109
logger.info(f"Creating new stack: {stack_name}")
110-
# Set OnFailure based on no_rollback flag
111-
on_failure = "DO_NOTHING" if no_rollback else "ROLLBACK"
110+
# Set DisableRollback based on no_rollback flag
111+
disable_rollback = True if no_rollback else False
112112
response = self.cfn.create_stack(
113113
StackName=stack_name,
114114
**template_param,
@@ -118,7 +118,7 @@ def deploy_stack(
118118
"CAPABILITY_NAMED_IAM",
119119
"CAPABILITY_AUTO_EXPAND",
120120
],
121-
OnFailure=on_failure,
121+
DisableRollback=disable_rollback,
122122
)
123123
operation = "CREATE"
124124

idp_cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "idp-cli"
10-
version = "0.4.4"
10+
version = "0.4.5"
1111
description = "Command-line interface for IDP Accelerator batch document processing"
1212
authors = [{name = "AWS"}]
1313
license = {text = "MIT-0"}

0 commit comments

Comments
 (0)