를 AWS Config 사용하여 API 호출을 로깅합니다. AWS CloudTrail - AWS Config

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

를 AWS Config 사용하여 API 호출을 로깅합니다. AWS CloudTrail

CloudTrail 모든 API 호출을 AWS Config 이벤트로 캡처합니다. 캡처된 호출에는 AWS Config 콘솔에서의 호출 및 AWS Config API 작업에 대한 코드 호출이 포함됩니다. 트레일을 생성하면 에 대한 이벤트를 포함하여 Amazon S3 버킷으로 CloudTrail 이벤트를 지속적으로 전송할 수 AWS Config있습니다. 트레일을 구성하지 않아도 CloudTrail 콘솔의 이벤트 기록에서 가장 최근 이벤트를 계속 볼 수 있습니다. 에서 수집한 CloudTrail 정보를 사용하여 요청을 받은 사람 AWS Config, 요청한 IP 주소, 요청한 사람, 요청 시기 및 추가 세부 정보를 확인할 수 있습니다.

자세한 CloudTrail 내용은 AWS CloudTrail 사용 설명서를 참조하십시오.

AWS Config 정보: CloudTrail

CloudTrail 계정을 만들 AWS 계정 때 활성화됩니다. 에서 AWS Config활동이 발생하면 해당 활동이 CloudTrail 이벤트 기록의 다른 AWS 서비스 이벤트와 함께 이벤트에 기록됩니다. 내 페이지에서 최근 이벤트를 보고, 검색하고, 다운로드할 수 있습니다 AWS 계정. 자세한 내용은 이벤트 기록으로 CloudTrail 이벤트 보기를 참조하십시오.

에 대한 이벤트를 포함하여 내 이벤트의 진행 중인 기록을 보려면 AWS Config트레일을 생성하십시오 AWS 계정. 트레일을 사용하면 CloudTrail Amazon S3 버킷으로 로그 파일을 전송할 수 있습니다. 콘솔에서 추적을 생성하면 기본적으로 모든 AWS 리전에 추적이 적용됩니다. 트레일은 AWS 파티션에 있는 모든 지역의 이벤트를 기록하고 지정한 Amazon S3 버킷으로 로그 파일을 전송합니다. 또한 CloudTrail 로그에서 수집된 이벤트 데이터를 추가로 분석하고 이에 따라 조치를 취하도록 다른 AWS 서비스를 구성할 수 있습니다. 자세한 내용은 다음 자료를 참조하십시오.

모든 AWS Config 작업은 AWS Config API 참조에 의해 CloudTrail 기록되고 문서화됩니다. 예를 들어 DeliverConfig스냅샷, DeleteDelivery채널 및 DescribeDelivery채널 작업에 대한 호출은 CloudTrail 로그 파일에 항목을 생성합니다.

모든 이벤트 및 로그 항목에는 요청을 생성한 사용자에 대한 정보가 들어 있습니다. 보안 인증 정보를 이용하면 다음을 쉽게 판단할 수 있습니다.

  • 요청이 루트 또는 AWS Identity and Access Management (IAM) 사용자 자격 증명으로 이루어졌는지 여부.

  • 역할 또는 페더레이션 사용자에 대한 임시 보안 보안 인증을 사용하여 요청이 생성되었는지 여부.

  • 다른 AWS 서비스에서 요청했는지 여부.

자세한 내용은 CloudTrail 사용자 ID 요소를 참조하십시오.

로그 파일 항목 이해 AWS Config

트레일은 지정한 Amazon S3 버킷에 이벤트를 로그 파일로 전송할 수 있는 구성입니다. CloudTrail 로그 파일에는 하나 이상의 로그 항목이 포함되어 있습니다. 이벤트는 모든 소스의 단일 요청을 나타내며 요청된 작업, 작업 날짜 및 시간, 요청 매개 변수 등에 대한 정보를 포함합니다. CloudTrail 로그 파일은 공개 API 호출의 정렬된 스택 트레이스가 아니므로 특정 순서로 표시되지 않습니다.

로그 파일의 예

CloudTrail 로그 항목의 예는 다음 항목을 참조하십시오.

DeleteDeliveryChannel

다음은 DeleteDelivery채널 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:32:57Z", "eventSource": "config.amazonaws.com", "eventName": "DeleteDeliveryChannel", "awsRegion": "us-west-2", "sourceIPAddress": "10.24.34.0", "userAgent": "aws-internal/3", "requestParameters": { "deliveryChannelName": "default" }, "responseElements": null, "requestID": "207d695a-8164-11e4-ab4f-657c7ab282ab", "eventID": "5dcff7a9-e414-411a-a43e-88d122a0ad4a", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
DeliverConfigSnapshot

다음은 DeliverConfig스냅샷 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "AssumedRole", "principalId": "AIDAABCDEFGHIJKLNMOPQ:Config-API-Test", "arn": "arn:aws:sts::111111111111:assumed-role/JaneDoe/Config-API-Test", "accountId": "111111111111", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2014-12-11T00:58:42Z" }, "sessionIssuer": { "type": "Role", "principalId": "AIDAABCDEFGHIJKLNMOPQ", "arn": "arn:aws:iam::111111111111:role/JaneDoe", "accountId": "111111111111", "userName": "JaneDoe" } } }, "eventTime": "2014-12-11T00:58:53Z", "eventSource": "config.amazonaws.com", "eventName": "DeliverConfigSnapshot", "awsRegion": "us-west-2", "sourceIPAddress": "10.24.34.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "deliveryChannelName": "default" }, "responseElements": { "configSnapshotId": "58d50f10-212d-4fa4-842e-97c614da67ce" }, "requestID": "e0248561-80d0-11e4-9f1c-7739d36a3df2", "eventID": "3e88076c-eae1-4aa6-8990-86fe52aedbd8", "eventType": "AwsApiCall", recipientAccountId": "111111111111" }
DescribeConfigurationRecorderStatus

다음은 DescribeConfigurationRecorderStatus작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:35:44Z", "eventSource": "config.amazonaws.com", "eventName": "DescribeConfigurationRecorderStatus", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": null, "responseElements": null, "requestID": "8442f25d-8164-11e4-ab4f-657c7ab282ab", "eventID": "a675b36b-455f-4e18-a4bc-d3e01749d3f1", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
DescribeConfigurationRecorders

다음은 DescribeConfiguration레코더 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:34:52Z", "eventSource": "config.amazonaws.com", "eventName": "DescribeConfigurationRecorders", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": null, "responseElements": null, "requestID": "6566b55c-8164-11e4-ab4f-657c7ab282ab", "eventID": "6259a9ad-889e-423b-beeb-6e1eec84a8b5", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
DescribeDeliveryChannels

다음은 DescribeDelivery채널 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:35:02Z", "eventSource": "config.amazonaws.com", "eventName": "DescribeDeliveryChannels", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": null, "responseElements": null, "requestID": "6b6aee3f-8164-11e4-ab4f-657c7ab282ab", "eventID": "3e15ebc5-bf39-4d2a-8b64-9392807985f1", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
GetResourceConfigHistory

다음은 GetResourceConfigHistory작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "AssumedRole", "principalId": "AIDAABCDEFGHIJKLNMOPQ:Config-API-Test", "arn": "arn:aws:sts::111111111111:assumed-role/JaneDoe/Config-API-Test", "accountId": "111111111111", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2014-12-11T00:58:42Z" }, "sessionIssuer": { "type": "Role", "principalId": "AIDAABCDEFGHIJKLNMOPQ", "arn": "arn:aws:iam::111111111111:role/JaneDoe", "accountId": "111111111111", "userName": "JaneDoe" } } }, "eventTime": "2014-12-11T00:58:42Z", "eventSource": "config.amazonaws.com", "eventName": "GetResourceConfigHistory", "awsRegion": "us-west-2", "sourceIPAddress": "10.24.34.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "resourceId": "vpc-a12bc345", "resourceType": "AWS::EC2::VPC", "limit": 0, "laterTime": "Dec 11, 2014 12:58:42 AM", "earlierTime": "Dec 10, 2014 4:58:42 PM" }, "responseElements": null, "requestID": "d9f3490d-80d0-11e4-9f1c-7739d36a3df2", "eventID": "ba9c1766-d28f-40e3-b4c6-3ffb87dd6166", "eventType": "AwsApiCall", "recipientAccountId": "111111111111" }
PutConfigurationRecorder

다음은 PutConfiguration레코더 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:35:23Z", "eventSource": "config.amazonaws.com", "eventName": "PutConfigurationRecorder", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "configurationRecorder": { "name": "default", "roleARN": "arn:aws:iam::222222222222:role/config-role-pdx" } }, "responseElements": null, "requestID": "779f7917-8164-11e4-ab4f-657c7ab282ab", "eventID": "c91f3daa-96e8-44ee-8ddd-146ac06565a7", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
PutDeliveryChannel

다음은 PutDelivery채널 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:33:08Z", "eventSource": "config.amazonaws.com", "eventName": "PutDeliveryChannel", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "deliveryChannel": { "name": "default", "s3BucketName": "config-api-test-pdx", "snsTopicARN": "arn:aws:sns:us-west-2:222222222222:config-api-test-pdx" } }, "responseElements": null, "requestID": "268b8d4d-8164-11e4-ab4f-657c7ab282ab", "eventID": "b2db05f1-1c73-4e52-b238-db69c04e8dd4", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
StartConfigurationRecorder

다음은 StartConfiguration레코더 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:35:34Z", "eventSource": "config.amazonaws.com", "eventName": "StartConfigurationRecorder", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "configurationRecorderName": "default" }, "responseElements": null, "requestID": "7e03fa6a-8164-11e4-ab4f-657c7ab282ab", "eventID": "55a5507f-f306-4896-afe3-196dc078a88d", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }
StopConfigurationRecorder

다음은 StopConfiguration레코더 작업에 대한 예제 CloudTrail 로그 파일입니다.

{ "eventVersion": "1.02", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::222222222222:user/JohnDoe", "accountId": "222222222222", "accessKeyId": "AKIAI44QH8DHBEXAMPLE", "userName": "JohnDoe" }, "eventTime": "2014-12-11T18:35:13Z", "eventSource": "config.amazonaws.com", "eventName": "StopConfigurationRecorder", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "aws-cli/1.2.11 Python/2.7.4 Linux/2.6.18-164.el5", "requestParameters": { "configurationRecorderName": "default" }, "responseElements": null, "requestID": "716deea3-8164-11e4-ab4f-657c7ab282ab", "eventID": "6225a85d-1e49-41e9-bf43-3cfc5549e560", "eventType": "AwsApiCall", "recipientAccountId": "222222222222" }