When will ECS ServiceConnectService be available in Cloudformation?

0

In January, AWS announced support for ECS ServiceConnect timeout configurations[0]. I looked at the CFN documentation and it appears as if that timeout is supported[1]. However, the syntax for the configuration doesn't appear to be updated and I'm not able to create a CFN template that updates the ServiceConnect timeout.

The template snippet looks like this:

....
"ecssrvccobalt2": {
  "Type": "AWS::ECS::Service",
  "Properties": {
    "Cluster": {"Ref": "ParamClusterARN"},
      ...
    "ServiceName": "myapp",
    "ServiceConnectConfiguration": {
      "Enabled": true,
      "Services": [{"PortName": "myapp", "ClientAliases": [{"Port": 8000}]}]
    },
    "ServiceConnectService": {"IdleTimeoutSeconds": 60},
      ...
  }
},
...

The CFN error is:

Resource handler returned message: 
  "Model validation failed (#: extraneous key [ServiceConnectService] is not permitted)" 
  (RequestToken: 996eedde-f001-c289-ae1f-xxxxxxxxxxxx, HandlerErrorCode: InvalidRequest)
profile picture
RNHurt
asked 19 days ago269 views
2 Answers
1

what error do you have? can you send a screen?

profile picture
answered 19 days ago
  • Good catch. I've updated the question and included the CFN template snippet and the error that it generates.

0
Accepted Answer

It turns out that I structured my CFN template incorrectly. The "ServiceConnectService" should be in the "ServiceConnectConfiguration" structure and not a peer of it. :facepalm:

profile picture
RNHurt
answered 19 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions