创建iam策略
对应json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Resource": "*",
"Action": [
"ec2:*"
],
"Condition": {
"StringEquals": {
"aws:RequestedRegion": "ap-southeast-1"
}
}
},
{
"Effect": "Allow",
"Resource": "*",
"Action": [
"cloudfront:*"
]
}
]
}
其中全区域资源,需特殊处理类似iam.cdn等服务