๐Ÿ•ฐ๏ธ ์ž‘์„ฑ์ผ : 2024.06.30

1. ๊ธฐ์กด Config์˜ Delivery ๊ตฌ์„ฑ์„ Log/Audit ๊ณ„์ •์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋„๋ก ์„ค์ •ํ•จ.

Untitled

2. Control Tower์—๋Š” ์•„์ง ๊ณ„์ •(โ€˜992382835345โ€™)์„ Control Tower์— Enrollํ•˜์ง€ ์•Š์Œ.

Untitled

3. Control Tower Log ๊ณ„์ •์—์„œ โ€˜992382835345โ€™ ๊ณ„์ •์— ๋Œ€ํ•œ Config ๋กœ๊ทธ๋ฅผ ์ •์ƒ์ ์œผ๋กœ ์ˆ˜์‹ 

Untitled

[cloudshell-user@ip-10-6-69-212 ~]$ aws configservice describe-delivery-channel-status
{
    "DeliveryChannelsStatus": [
        {
            "name": "default",
            "configSnapshotDeliveryInfo": {
                "lastStatus": "SUCCESS",
                "lastAttemptTime": "2024-06-27T14:04:52.992000+00:00",
                "lastSuccessfulTime": "2024-06-27T14:04:52.992000+00:00",
                "nextDeliveryTime": "2024-06-28T14:04:52.060000+00:00"
            },
            "configHistoryDeliveryInfo": {
                "lastStatus": "SUCCESS",
                "lastAttemptTime": "2024-06-27T13:52:16.076000+00:00",
                "lastSuccessfulTime": "2024-06-27T13:52:16.076000+00:00"
            },
            "configStreamDeliveryInfo": {
                "lastStatus": "SUCCESS",
                "lastStatusChangeTime": "2024-06-27T15:14:00.694000+00:00"
            }
        }
    ]
}

4. Log Account์˜ S3 ๋ฒ„ํ‚ท ์ •์ฑ…์„ ํ™•์ธ

        {
            "Sid": "AWSBucketDeliveryForConfig",
            "Effect": "Allow",
            "Principal": {
                "Service": "config.amazonaws.com"
            },
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::aws-controltower-logs-767397798807-ap-northeast-2/o-jhh2xc1s8l/AWSLogs/*/*",
            "Condition": {
                "StringEquals": {
                    "aws:SourceOrgID": "o-jhh2xc1s8l"
                }
            }
        },

5. Audit Account์˜ SNS ํ† ํ”ฝ ์ •์ฑ… ํ™•์ธ

{
  "Version": "2008-10-17",
  "Statement": [
    {
      "Sid": "AWSSNSPolicy",
      "Effect": "Allow",
      "Principal": {
        "Service": [
          "cloudtrail.amazonaws.com",
          "config.amazonaws.com"
        ]
      },
      "Action": "sns:Publish",
      "Resource": "arn:aws:sns:ap-northeast-2:654654264837:aws-controltower-AllConfigNotifications",
      "Condition": {
        "StringEquals": {
          "aws:SourceOrgID": "o-jhh2xc1s8l"
        }
      }
    }
  ]

Config๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ธฐ์กด ๊ณ„์ • ๋“ฑ๋ก ์™„๋ฃŒ

1. ๊ณ„์ • ๋“ฑ๋ก์‹œ ์œ ์˜ ์‚ฌํ•ญ

AWS Document์— ์ •๋ฆฌ๋œ ๋Œ€๋กœ 7๋‹จ๊ณ„ ๊ณ„์ • ๋“ฑ๋ก์ด ์•„๋‹Œ OU ๋“ฑ๋ก์œผ๋กœ Control Tower์— Enroll ํ•ด์•ผ ํ•จ. ๊ณ„์ • ๋“ฑ๋ก์œผ๋กœ ์ง„ํ–‰ ํ•  ๊ฒฝ์šฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ

2. ๊ฒฐ๊ณผ