1. IAM Policy that allows performing actions on EC2 and ELB from a specific region.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEC2AndELBActionFromSpecificRegion",
"Effect": "Allow",
"Action": [
"ec2:*",
"elasticloadbalancing:*"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:RequestedRegion": "ap-south-1"
}
}
}
]
}
No comments:
Post a Comment