condition key
A value AWS attaches to every request, such as whether multi-factor authentication was used, that a policy Condition can test.
In more detail
Conditions narrow a permission along lines actions and resources cannot express: the caller’s network, a second factor, matching tags, or whether an upload is encrypted. If a request has no value for the tested key, most conditions on it evaluate to false: an Allow that needs it does not apply, so the request falls to an implicit deny, and a Deny that needs it never fires.
Example
"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}}Related terms
- policy statement — One rule in an IAM policy, made of at most five parts: Sid, Effect, Action, Resource and Condition.
- MFA — Multi-factor authentication: proving who you are with something extra, such as a code from a phone, as well as a password.
- missing context values — The simulator field that lists condition keys a policy tested but the simulated request did not supply.
- condition operator — The test a policy condition applies, such as StringEquals for exact matches or StringLike for wildcard matches.
- request context — The information attached to a single request, such as who made it, when and from where, that code or access policies check while handling it.
- aws:MultiFactorAuthPresent — An AWS condition key that is true when the caller signed in with MFA, and is simply missing for requests made with long-term access keys.
Taught in
- Policy Evaluation: Deny Wins, And Both Accounts Must Agree — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Many Accounts: Organizations, SCPs And Control Tower — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Observability with CloudWatch — Cloud Infrastructure & Hyperscaler Architecture
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Service Control Policies & Guardrail Architecture — Cloud Security & DevSecOps Engineering
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Continuous IaC Drift Detection & State Protection — Cloud Security & DevSecOps Engineering