对流层模块版本:2.6.2。
Python脚本:
import troposphere.ecs as ecs
from ecs import *
...
template.add_resource(ecs.Cluster(
"Cluster",
CapacityProviders=["FARGATE", "FARGATE_SPOT"]
))
...
为什么在运行创建模板的脚本时出现此错误?
AWS::ECS::Cluster object does not support attribute CapacityProviders