Can I change AWS CloudFormation hooks timeout

0

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.

질문됨 일 년 전358회 조회
1개 답변
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.

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠