


{
"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 match the Region where you want to grant permissions for EC2, RDS, and S3 services.



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