How to restrict AWS access from office Ips only
Rafaf Tahsin

Rafaf Tahsin @rafaftahsin

About: Mostly, a DevOps Engineer

Location:
Dhaka, Bangladesh
Joined:
May 10, 2023

How to restrict AWS access from office Ips only

Publish Date: Aug 11 '23
0 0

Use Source IP condition in IAM policy.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Statement1",
            "Effect": "Allow",
            "Action": [
                "*"
            ],
            "Resource": [
                "*"
            ],
            "Condition": {
                "IpAddress": {
                    "aws:SourceIp": [
                        "202.74.246.XXX/32"
                    ]
                }
            }
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment