简体   繁体   English

创建和计划删除AWS云形成堆栈

[英]Creation and Scheduled deletion of AWS Cloud Formation Stack

I am trying to setup an environment on AWS by launching a stack via AWS Cloud Formation template. 我正在尝试通过AWS Cloud Formation模板启动堆栈来在AWS上设置环境。 The stack would be created and then be scheduled for deletion automatically based on the TTL parameter in the template. 将创建堆栈,然后根据模板中的TTL参数自动计划删除堆栈。 There seems to be a problem only when the instance is getting launched, it errors out that "Failed to receive 1 resource signal(s) within the specified duration" 似乎只有在启动实例时才会出现问题,它会错误地指出“在指定的持续时间内未能接收到1个资源信号”

If anyone could point out what I am doing wrong in the template, it would be great. 如果有人可以指出我在模板中做错了什么,那就太好了。

Here is the link for the template in YAML: https://s3.ca-central-1.amazonaws.com/rkbucket028/aws-openshit-cf-template_new.yml 这是YAML中模板的链接: https : //s3.ca-central-1.amazonaws.com/rkbucket028/aws-openshit-cf-template_new.yml

I have already followed this article but there seems to be something wrong with it as well:- https://aws.amazon.com/blogs/devops/scheduling-automatic-deletion-of-application-environments/# 我已经关注了这篇文章,但似乎也有问题: -https : //aws.amazon.com/blogs/devops/scheduling-automatic-deletion-of-application-environments/#

CloudFormation rolls back if any of the resources have failed to be created (ie didnt responed in the predetermined duration). 如果任何资源创建失败(即在预定的时间内未响应),CloudFormation将回滚。 If you believe that it is only the process that is taking longer and not a genuine failure, you can either incorporate the wait condition, or better use resource creation policy time and count. 如果您认为只是花费较长时间而不是真正的失败的过程,则可以合并等待条件,或者更好地使用资源创建策略的时间和计数。

Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html 来源: https : //docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html

PS: Your template url is not accessible. PS:无法访问您的模板URL。 Check your bucket and file permissions on S3 bucket and share the public url 检查您对S3存储桶的存储桶和文件权限,并共享公共URL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM