tagging:要求创建/运行某类资源时必须打了标签
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyCreateSecretWithNoTag",
"Effect": "Deny",
"Action": "secretsmanager:CreateSecret",
"Resource": "*",
"Condition": {
"Null": {
"aws:RequestTag/<tag-key>": true
}
}
},
{
"Sid": "DenyRunInstanceWithNoTag",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": [
"arn:aws:ec2:*:*:instance/*"
],
"Condition": {
"Null": {
"aws:RequestTag/<tag-key>": true
}
}
}
]
}最后更新于