Troposphere module version: 2.6.2.
Python script:
import troposphere.ecs as ecs
from ecs import *
...
template.add_resource(ecs.Cluster(
"Cluster",
CapacityProviders=["FARGATE", "FARGATE_SPOT"]
))
...
Why am i getting this error when running the script that creates the template?
AWS::ECS::Cluster object does not support attribute CapacityProviders
I believe it is not supported in
2.6.2. Update to2.6.3should solve your problem