Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: aws ds describe-directories does not return resource tags #9335

Closed
1 task
RoseSecurity opened this issue Mar 3, 2025 · 2 comments
Closed
1 task

bug: aws ds describe-directories does not return resource tags #9335

RoseSecurity opened this issue Mar 3, 2025 · 2 comments
Assignees
Labels
directoryservice Directory Service makes it easy for you to setup and run directories in the AWS cloud feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@RoseSecurity
Copy link

Describe the bug

The aws ds describe-directories command does not include tags in its response, making it difficult to retrieve tag data without calling list-tags-for-resource separately.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

  • The response should include a Tags field containing key-value pairs for each directory.
{
    "DirectoryDescriptions": [
        {
            "DirectoryId": "d-xxxxxxxxxx",
            "Name": "example.com",
            "Tags": [
                {"Key": "Environment", "Value": "Production"},
                {"Key": "Owner", "Value": "DevOps"}
            ]
        }
    ]
}

Current Behavior

  • The response does not include any Tags field.
  • Currently, retrieving tags requires an additional API call:
aws ds list-tags-for-resource --resource-id d-xxxxxxxxxx

Reproduction Steps

  1. Describe directory services
aws ds describe-directories

Possible Solution

  • Update the AWS CLI’s describe-directories command to optionally include tags.
  • This could be done via:
    • A new flag, e.g., --include-tags
    • Expanding the default output schema if AWS Directory Service supports it.

Additional Information/Context

No response

CLI version used

aws-cli/2.24.9

Environment details (OS name and version, etc.)

Python/3.12.6 Linux/6.12.5-orbstack-00287-gf8da5d508983 exe/aarch64.debian.12

@RoseSecurity RoseSecurity added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 3, 2025
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Mar 3, 2025
@RyanFitzSimmonsAK RyanFitzSimmonsAK added investigating This issue is being investigated and/or work is in progress to resolve the issue. p3 This is a minor priority issue directoryservice Directory Service makes it easy for you to setup and run directories in the AWS cloud feature-request A feature should be added or improved. and removed needs-triage This issue or PR still needs to be triaged. investigating This issue is being investigated and/or work is in progress to resolve the issue. bug This issue is a bug. labels Mar 3, 2025
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @RoseSecurity, thanks for reaching out. I definitely see how including tags in the response would be helpful here. This isn't a bug though; the operation documentation doesn't include tags in the response. I've reached out to the Directory Service with this as a feature request. Please refer to an SDK or AWS CLI changelog for updates about this going forward. Thanks!

Copy link

github-actions bot commented Mar 5, 2025

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
directoryservice Directory Service makes it easy for you to setup and run directories in the AWS cloud feature-request A feature should be added or improved. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

2 participants