question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI: Ability to set stack creation timeout

See original GitHub issue

Describe the feature

In pure Cloudformation, one can control the amount of time that can pass before the stack status becomes CREATE_FAILED by means of the –timeout-in-minutes CLI flag. This feature however, does not seem to be available in CDK.

Use Case

Just as in Cloudformation, it would be nice to be able to define stack creation timeouts when working with the CDK.

Proposed Solution

Add a property to the App class to allow one to define a stack creation timeout.

And/or

add a --timeout-in-minutes argument to the cdk deploy toolkit command.

Other Information

Despite not being able to find documentation to support this, it seems possible to set stack creation timeouts in Python by doing the following:

app = cdk.App()
app.timeout = 1

And by this i mean the interpreter doesn’t complain about this property and deployment can happen, however during stack creation itself the timeout is not honoured.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.37.1 (build f15dee0)

Environment details (OS name and version, etc.)

Windows 10

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
peterwoodworthcommented, Aug 16, 2022

This is a valid feature request, so I will leave it open 🙂 We can still track issues here that are blocked by CloudFormation

1reaction
houston3commented, Nov 24, 2022

If possible, could you also add timeout and retry configuration to updates, not just creation? One of the most frustrating things about CDK and Cloudformation is waiting for a failed operation to complete and rollback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-stack — AWS CLI 1.27.37 Command Reference
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout....
Read more >
create-stack — AWS CLI 2.3.2 Command Reference
Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of...
Read more >
Set the ECS Cloudformation Update Stack timeout?
I've created a workaround for this problem until AWS creates a ECS UpdatePolicy and CreationPolicy that allows for resourcing signaling:.
Read more >
What is AWS CloudFormation? - Hava.io
Using the template, you then create a CloudFormation stack in AWS which ... specify a stack creation timeout period and set the stack...
Read more >
WaitCondition Controls the Pace of AWS CloudFormation ...
If no signal is received before the timeout, the WaitCondition enters the CREATE_FAILED state and the stack creation is rolled back.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found