boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
9.07k stars 1.87k forks source link

Neptune Client Returns All DB Clusters (Not Just Neptune) #4211

Closed SeanFromIT closed 3 months ago

SeanFromIT commented 3 months ago

Describe the bug

Boto3 Neptune client's describe_db_clusters returns the same DB clusters as RDS's describe_db_clusters.

Expected Behavior

I would expect the Neptune client to only return Neptune clusters.

Current Behavior

Returns all clusters such as DocumentDB.

Reproduction Steps

neptune = boto3.client('neptune') output = neptune.describe_db_clusters() print(output) Inspect ['DBClusters']['Engine'] response for strings != 'neptune'

Possible Solution

I'm guessing it's just passing through to the RDS APIs behind the scenes. Consider filtering on ['DBClusters']['Engine'] == 'neptune'

Additional Information/Context

No response

SDK version used

1.34.91

Environment details (OS name and version, etc.)

macOS 13.6.7 (22G720); Python 3.11.2

tim-finnigan commented 3 months ago

Thanks for reaching out. This is expected behavior for that command and the underlying API — the documentation you linked notes:

This operation can also return information for Amazon RDS clusters and Amazon DocDB clusters.

You can use the Filters parameter and specify engine to filter on specific clusters like Neptune:

engine - Accepts an engine name (such as neptune), and restricts the results list to DB clusters created by that engine.

github-actions[bot] commented 3 months ago

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.