Cloud Infra Architecture (AWS)/AWS Organization

[AWS Organization] SCP MFA 필수 사용

seongduck 2024. 2. 11. 20:41

1) SCP 문법

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "scpmfa",
      "Effect": "Deny",
      "Action": [
        "*"
      ],
      "Resource": "*",
      "Condition": {
        "ArnNotLikeIfExists": {
          "aws:PrincipalArn": [
            "arn:aws:iam::*:role/*"
          ]
        },
        "BoolIfExists": {
          "aws:MultiFactorAuthPresent": false
        }
      }
    }
  ]
}

 

2) 테스트