AWS::ECS::Cluster object does not support attribute CapacityProviders

145 Views Asked by At

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
1

There are 1 best solutions below

2
Wilson.L On

I believe it is not supported in 2.6.2. Update to 2.6.3 should solve your problem