1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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 hace 4 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 meses
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
I tried to implement something almost exactly like this without luck. Are we sure this works?