1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
The following policy ensures that only EC2 instances, volumes and snapshots will launched if they have an "application" key with any value except null value.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"ec2:CreateSnapshot",
"ec2:CreateVolume",
"ec2:RunInstances"
],
"Resource": [
"arn:aws:ec2:*::snapshot/*",
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"StringNotLike": {
"aws:RequestTag/application": "?*"
}
}
}
]
}
respondido há 4 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 3 meses
I tried to implement something almost exactly like this without luck. Are we sure this works?