My current setup on EC2 Management Console involves:

* multiple security groups representing various resources on AWS
* multiple inbound rules within a security group representing people's public IP addresses that are whitelisted to access the resource

Currently, when a person's public IP address changes because of ISP issues, I have to manually go into EC2MC and change the inbound rule associated with that person to allow them access. There are multiple inbound rules within a security group and multiple security groups that this person is whitelisted for. Rather than changing, for instance, 9 rules manually, I'm wondering if there's a way to launch a script that prompts for the security group name, person's name, and new IP address so that this substitution occurs automatically?

[Example layout of security groups](https://i.stack.imgur.com/WOdRE.png)

[Example layout of inbound rules within a security group](https://i.stack.imgur.com/6Fnur.png)

Any advice is appreciated!