2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
You can leverage Condition operator in IAM JSON policy elements Eg. Boolean conditions enable the creation of Condition elements that limit access by comparing a key to either "true" or "false."
{
"Sid": "DenyLaunchingPublicAMI",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:<region>::image/ami-*",
"Condition": {
"Bool": {
"ec2:Public": "true"
}
}
Document:
répondu il y a 8 mois
1
You can also consult the following https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
répondu il y a 7 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 3 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an