如何使用ApplicationloadBalancedFargatesErvice CDK构造为负载平衡器启用删除保护
我使用ApplicationLoadalanced FargatesErvice CDK构建体上的ECS群集上创建了一个运行的Fargate服务。
cluster,
memoryLimitMiB: 1024,
desiredCount: 1,
cpu: 512,
taskImageOptions: {
image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"),
},
});
没有实现删除保护的道具。谁能从他的经验中学到?
I have created a Fargate service running on an ECS cluster fronted by an application load balancer using the ApplicationLoadBalancedFargateService CDK construct.
cluster,
memoryLimitMiB: 1024,
desiredCount: 1,
cpu: 512,
taskImageOptions: {
image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"),
},
});
There are no Props for enabling deletion protection. Can anyone tell from his experience?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
CDK提供的逃生舱口功能是使用Clouformation Drop,如果任何高级构造没有参数。
CDK offers the Escape Hatches feature to use Clouformation Props if any High-level construct does not have parameters.
这相当于 @umeshtyagi在python cdk中的答案:
This is the equivalent to @UmeshTyagi's answer in Python CDK: