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

describe_security_group_rules with tag filter returns empty results, but CLI works as expected #4373

Closed
1 task
woodjme opened this issue Dec 10, 2024 · 1 comment
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.

Comments

@woodjme
Copy link

woodjme commented Dec 10, 2024

Describe the bug

When using the describe_security_group_rules method in Boto3 with a tag filter (e.g., tag:Name), the response is empty, even though the AWS CLI returns the expected results using the equivalent filter.

Regression Issue

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

Expected Behavior

Returns an array of security group rules

Current Behavior

Always an empty array

Reproduction Steps

import boto3

ec2_client = boto3.client('ec2')

response = ec2_client.describe_security_group_rules(
    Filters=[
        {'Name': 'tag:Name', 'Values': ['test']}
    ]
)

print(response.get('SecurityGroupRules', []))
aws ec2 describe-security-group-rules --filters Name="tag:Name",Values="test"

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.35.77

Environment details (OS name and version, etc.)

MacOS 15.1.1

@woodjme woodjme added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Dec 10, 2024
@woodjme woodjme closed this as completed Dec 10, 2024
@woodjme
Copy link
Author

woodjme commented Dec 10, 2024

User error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant