First, we will create a policy to limit maximum permissions. In this policy, we only allow users to have full rights on EC2 and on a specified Region.


{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2RestrictRegion",
"Effect": "Allow",
"Action": "ec2:*",
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:RequestedRegion": [
"ap-southeast-1"
]
}
}
}
]
}

ec2-admin-restrict-region. (Since we are only allowing User EC2 Admin to operate on Region Singapore ap-southeast-1.) Then select Create Policy.
