IAM Conditions
- Allow
IP
toAPI
call to theAWS
fromcertain IP
- Any request to the
AWS
should come from192.0.2.0/24
- Allow taking action to certain resources only from certain region, like
EC2 Instance
can be start or stop if the request is fromeu-east-1
- Restriction can be based on
Tags
, like - We can start a instance if the instance has certain tags
- We can stop a instance if the instance has certain tags
- For certain actions we can force using
MFA
, like - Stop
EC2 Instance
- Terminate
EC2 Instance