title: AWS - What is the simplest way to get a dump of all allowed inbound IP addresses?
body: <p>Pretty new to the AWS APIs/Lambda so apologies if I'm missing something simple.  I just want to get an automated dump of the inbound IP addresses under each of our security groups on a weekly interval.  Is this something I can setup under lambda or do I need to do it through the API or CLI?   I've looked at the DescribeSecurityGroup functions under <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html</a> and <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-security-groups.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-security-groups.html</a>, but am wondering if I'm overcomplicating.   Thanks in advance.</p>