gpt4 book ai didi

amazon-web-services - 如何在 CloudFormation 中使用 ECS PlacementConstraints

转载 作者:行者123 更新时间:2023-12-03 07:16:11 24 4
gpt4 key购买 nike

我尝试在使用 CloudFormation 的服务定义中使用 placementConstraints,但它不作为 AWS::ECS::Service 资源中的属性存在。有解决办法吗?

ECS服务:http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service_definition_paramters.html

CloudFormation ECS 服务资源:http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html

最佳答案

在撰写本文时,

PlacementConstraint 作为 AWS::ECS::Service 的属性存在。引用自 AWS 文档:

PlacementConstraint is a property of the AWS::ECS::Service resource that specifies the placement constraints for the tasks in the service to associate with an Amazon EC2 Container Service (Amazon ECS) service.

引用:

[1] http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraints-placementconstraint.html

[2] http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-placementconstraints

关于amazon-web-services - 如何在 CloudFormation 中使用 ECS PlacementConstraints,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42793276/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com