79631822

Date: 2025-05-21 10:55:10
Score: 1
Natty:
Report link

Think I've cracked this.

I came here as I was trying:

  ECSService:
    Type: AWS::ECS::Service
    DependsOn:
      Fn::If:
        - SomeConditionIsTrue
        - [ AnotherECSService, OneMoreECSService ]
        - AnotherECSService
    Properties:

And AWS::Transform was failing

But this seems to have worked:

  ECSService:
    Type: AWS::ECS::Service
    Fn::If:
      - SomeConditionIsTrue
      - DependsOn: [ AnotherECSService, OneMoreECSService ]
      - DependsOn: AnotherECSService
    Properties:

Luke

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luke