Closed seydar closed 3 months ago
This bug also exists on revoke_security_group_egress
.
Hi @seydar,
Could you try changing those last few lines to the following and let us know if it works?
if ingress_ids:
ec2.revoke_security_group_ingress(GroupId=sg['GroupId'], SecurityGroupRuleIds=ingress_ids)
if egress_ids:
ec2.revoke_security_group_egress(GroupId=sg['GroupId'], SecurityGroupRuleIds=egress_ids)
I was unable to reproduce this on any rules that had ingress or egress rules, but encountered the same error when []
was passed as an input parameter.
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.
Describe the bug
When calling RevokeSecurityGroupIngress (
ec2.revoke_security_group_ingress(...)
), the request fails because it expects a different capitalization of a parameter than is allowed to be supplied.Expected Behavior
I expect the call to succeed.
Current Behavior
Reproduction Steps
Possible Solution
I believe there is something serverside in AWS that is expecting 'ipPermissions' or 'securityGroupRuleIds', but it should be expecting 'IpPermissions' or 'SecurityGroupRuleIds' with capital letters. I am unable to supply the named parameters with lowercase initial letters.
Additional Information/Context
No response
SDK version used
1.34.34
Environment details (OS name and version, etc.)
macOS 12.6.4