简体   繁体   English

其他服务创建时出现AWS CloudFormation错误

[英]AWS CloudFormation error on additional Service creation

I am working on a project where we need to deploy 我正在开发一个需要部署的项目

  1. Production - server and client 生产 - 服务器和客户端
  2. Staging - server and client. 暂存 - 服务器和客户端。

We used AWS CF to deploy the production server and client - which worked successfully. 我们使用AWS CF来部署生产服务器和客户端 - 它们成功运行。 However, on attempting to deploy the staging server and client, we get a CREATE_FAILED status on the client staging nested stack with 但是,在尝试部署登台服务器和客户端时,我们在客户端登台嵌套堆栈上获得CREATE_FAILED状态

Logical ID - Service 逻辑ID - 服务

Type - AWS::ECS::Service 类型 - AWS :: ECS :: Service

and error 和错误

[Stack name here]Service-2MCMYC2EFDWZ did not stabilize. [堆栈名称] Service-2MCMYC2EFDWZ没有稳定。

As this was happening, staging server constantly got created successfully on each attempt to update the stack. 在发生这种情况时,每次尝试更新堆栈时,都会成功创建临时服务器。 Since the update fails, it gets rolled back as expected. 由于更新失败,因此会按预期回滚。

We then attempted to push the staging services one at a time - starting with staging server - which got created and is accessible. 然后,我们尝试一次推送一个登台服务 - 从登台服务器开始 - 创建并可访问。

We proceeded to push changes for the staging client which got created, but it failed once again on creating the Service resource of type AWS::ECS::Service on the staging server - not entirely sure why it tried creating a new resource on an already existing nested stack. 我们继续推送已创建的登台客户端的更改,但在登台服务器上创建AWS :: ECS :: Service类型的Service资源时再次失败 - 不完全确定为什么它尝试在已创建新资源上现有的嵌套堆栈。 This caused the UPDATE_ROLLBACK_FAILED status and we rolled back the service by excluding the failing resource. 这导致了UPDATE_ROLLBACK_FAILED状态,我们通过排除失败的资源来回滚服务。

I have made a similar CF template with the same options for our project - excluding private details :D. 我为我们的项目制作了一个类似的CF模板和相同的选项 - 不包括私人细节:D。 You can find it here . 你可以在这里找到它

I will appreciate if I can get what I need to change to make this work. 如果能得到我需要改变的东西,我将不胜感激。

Thanks 谢谢

This got resolved this by increasing the ECS ClusterSize. 这通过增加ECS ClusterSize来解决这个问题。 I had 4 initially. 我最初有4个。 8 did the trick. 8诀窍。 Placing tasks were unsuccessful because the container could not meet its requirements. 放置任务不成功,因为容器无法满足其要求。 It also had insufficient memory. 它也没有足够的记忆力。 This subsequently caused the service to not stabilize. 这随后导致服务不稳定。

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

相关问题 通过 Cloudformation 创建 AWS 角色时出现 LimitExceeded 错误 - AWS Role creation via Cloudformation error with LimitExceeded 服务无法承担角色错误 - 使用 JDBC 目标创建 AWS Glue cloudformation - Service is unable to assume a role error - AWS Glue cloudformation creation with JDBC target AWS Cloudformation主模板创建 - AWS Cloudformation Master Template creation AWS cloudformation 记录集创建失败 - AWS cloudformation recordset creation failing 使用 AWS CloudFormation 对 AutoScalingPolicy 创建进行故障排除 - Troubleshooting AutoScalingPolicy creation with AWS CloudFormation AWS Cloudformation - Elasticsearch 访问控制策略服务错误 InvalidTypeException - AWS Cloudformation - Elasticsearch Access Control Policies Service Error InvalidTypeException AWS cloudformation 中的公钥创建出现以下错误:提供的请求无效:AWS::CloudFront::PublicKey - Public key creation in AWS cloudformation giving following error: Invalid request provided: AWS::CloudFront::PublicKey AWS Cloudformation字符串列表错误 - AWS Cloudformation Stringlist error AWS MWAA Cloudformation 堆栈创建因 NotStabilized 而失败 - AWS MWAA Cloudformation stack creation failed with NotStabilized AWS CloudFormation 堆栈创建不断失败 - AWS CloudFormation Stack Creation Keeps Failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM