aws-cloudformation / aws-cloudformation-resource-providers-stepfunctions

The CloudFormation Resource Provider Package For AWS Step Functions
https://aws.amazon.com/step-functions/
Apache License 2.0
6 stars 4 forks source link

Update StateMachineAlias schema to set timeoutInMinutes for update handler #55

Closed hongkuntian closed 5 months ago

hongkuntian commented 5 months ago

Issue #, if available: N/A

Description of changes: Add timeoutInMinutes to update handler in the resource schema.

The value is an integer specifying the timeout for the entire operation to be interpreted by the invoker of the handler, in minutes.

When this is not set, the default value of 2h is used and any gradual deployment taking 2h or longer would fail the stack update due to the resource timing out.

Resource timed out waiting for completion

By setting the value to 2160 (maximum value), a gradual deployment can take up to 36h to stabilize and the StateMachineAlias resource should not timeout.

Testing: Ran mvn test and pre-commit run --all-files

Local run of contract tests passed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.