Restricting access to AWS based on source IP and its considerations

Kieran Yio
4 min readFeb 6, 2023

Some organisations may require you to restrict AWS access for all or a subset of users to only the specified IP ranges as part of the security policy or for other reasons. Typically, these IP ranges are the organisation’s IP addresses. This AWS documentation shows how we can craft a simple IAM policy to deny all AWS actions in the account when the request is not from the specified IP ranges.

https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_deny-ip.html

--

--

Kieran Yio

Technologist | AWS Community Builder | Sharing my knowledge with the community