DEV Community

Rafaf Tahsin
Rafaf Tahsin

Posted on

How to restrict a user to use single region in AWS

IAM policy to restrict user to a single region

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Statement1",
            "Effect": "Allow",
            "Action": [
                "*"
            ],
            "Resource": [
                "*"
            ],
            "Condition": {
                "StringEquals": {
                    "aws:RequestedRegion": [
                        "us-west-1"
                    ]
                }
            }
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)