optional param to provide CF execution policy
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user