aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

ECS describe-clusters does not include configuration

Open drewma2k opened this issue 1 year ago • 4 comments

Describe the bug

aws ecs describe-clusters --clusters <cluster> --include CONFIGURATIONS does not include configuration information

Expected Behavior

The configuration key to be provided in the output as per awscli ecs docs

Current Behavior

The configuration key is not included

Reproduction Steps

aws ecs describe-clusters --clusters <cluster> --include CONFIGURATIONS

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.17.44 Python/3.11.8 Darwin/23.6.0 source/arm64

Environment details (OS name and version, etc.)

MacOS Sonoma 14.6.1

drewma2k avatar Sep 05 '24 15:09 drewma2k

Hey drewma2k@, “--include CONFIGURATIONS” would only give outputs if you have certain configurations with the ECS Cluster such as KMS, logging and storage KMS configuration as per API doc [1]. The CLI doc for "describe-clusters" [2] could have also included and clarified the configurations as what is described on the API DescribeClusters doc.

To make the docs better, you could "Provide Feedback" at the bottom of the docs page [1]. Also, I have raised an internal ticket to our docs team for improvement and clarification. Please let me know if you have any follow up questions.

Thank you

[1] https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeClusters.html [2] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/describe-clusters.html

P153329689

adev-code avatar Sep 06 '24 22:09 adev-code

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Sep 16 '24 23:09 github-actions[bot]

Thank you for the clarification. Is there any way to find the log group associated with an ECS service? That’s what I thought would be under the configuration section.

drewma2k avatar Sep 18 '24 16:09 drewma2k

Hello @drewma2k, thanks for following up. To get the log group associated with the cluster using $ aws ecs describe-clusters --clusters <cluster_name> --include CONFIGURATIONS, you must have a cluster log configuration already set. You can use the update_cluster operation to set these configurations on an existing cluster (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/client/update_cluster.html). Please let me know if you have any questions, thanks.

adev-code avatar Sep 18 '24 20:09 adev-code

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Sep 28 '24 21:09 github-actions[bot]