


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

You can change the Region information in the above policy to suit the Region to which you want to authorize EC2, RDS and S3 services.




In the next step, we will assign the policy to the CostTest group and then test the effectiveness of this policy.