Bootstrap the account with a custom Qualifier
for the CDKToolkit.
cdk bootstrap --qualifier DESIRED_QUALIFIER --toolkit-stack-name DESIRED_CDKToolkit_NAME
Using the custom CDKToolkit in the CDK code,
Bootstrap the account with a custom Qualifier
for the CDKToolkit.
cdk bootstrap --qualifier DESIRED_QUALIFIER --toolkit-stack-name DESIRED_CDKToolkit_NAME
Using the custom CDKToolkit in the CDK code,
def execute_statemachine(self, arn, region): | |
# https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html | |
create_update_action = cr.AwsSdkCall( | |
service="StepFunctions", | |
action="startExecution", | |
parameters={"stateMachineArn": arn}, | |
# Physical resource id is the time of running the stack. | |
# It is to run this resource each time the stack is deployed. | |
physical_resource_id=cr.PhysicalResourceId.of( | |
str(int(datetime.datetime.now().timestamp())) |