I am using Amazon API via a Lambda function to allow my teammates access my server. Using post method I am invoking this lambda function to add teammate's IPs in inbound rule.
I want to add IPs to an existing rule like this add IPs in single rule but there is no method/action available in AWS API Documentation. Only available methods are these, the first one every time creates a new rule with IP everytime like this (even when everything is same, ports, protocol and description) and the second one is to just change rule description. authorize_security_group_ingress and update_security_group_rule_descriptions_ingress
Please help me what shall I do? Is there any python script available for the same that is to add IP to an existing rule instead of creating new rule.