スキップしてコンテンツを表示

Can I change AWS CloudFormation hooks timeout

1

Is there any way to increase timeout when hooks are called during stack operations? It seems to set to 30 seconds, and I cannot find if it could be configured.

質問済み 3年前1417ビュー
2回答
3

Yes, you can change the timeout for AWS CloudFormation hooks by specifying the Timeout property in your CloudFormation stack template.

The Timeout property specifies the amount of time, in minutes, that AWS CloudFormation should wait for the hook to complete before timing out. By default, the timeout for hooks is set to 30 minutes.

To change the timeout, you can add the Timeout property to your CloudFormation resource that uses the hook. For example, if you have a resource named MyCustomResource that uses a hook, you can add the Timeout property to the resource definition as follows:

MyCustomResource:
  Type: Custom::MyCustomResource
  Properties:
    ...
    Timeout: 60

In the example above, the Timeout property is set to 60 minutes (1 hour). You can adjust the value as needed for your specific use case.

Note that increasing the timeout for hooks may increase the total time it takes for your stack operation to complete, so it's important to balance the timeout value with the overall operation duration.

エキスパート
回答済み 3年前
0

The defaul timeout is 30 seconds for all hooks, but you can configure a callback delay to configure how long the hook should wait before calling the hook again. This can be configured on all hook types.

We had a Twitch AWS OnAir show this past Friday which dove into CloudFormation hooks, including a re:Post segment where we covered a number of re:Post user questions on this topic. Starting at 34:45.

AWS
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ