optional param to provide CF execution policy

This commit is contained in:
2026-05-15 10:39:24 -04:00
parent 1bc5052d22
commit 2618b30d40
3 changed files with 18 additions and 2 deletions

View File

@@ -22,6 +22,11 @@ def setup(
"--bootstrap/--no-bootstrap",
help="Run CDK bootstrap before deploying the application stack",
),
cloudformation_execution_policy: str | None = typer.Option(
None,
"--cloudformation-execution-policy",
help="IAM policy ARN for the CDK bootstrap CloudFormation execution role",
),
) -> None:
"""Create infrastructure with AWS CDK."""
cfg = load_cfg(config)
@@ -46,6 +51,7 @@ def setup(
profile=cfg.aws.profile,
account_id=account_id,
region=cfg.aws.region,
cloudformation_execution_policy=cloudformation_execution_policy,
)
with CONSOLE.status("Running cdk deploy..."):
state = provisioning.deploy(