# EC2 인스턴스

## 리소스 유형

`AWS.EC2.Instance`

## 리소스 ID 형식

EC2 인스턴스의 경우, 리소스 ID는 ARN입니다.

`arn:aws:ec2:us-west-2:123456789012:instance/i-1`

## 배경

이 리소스는 AWS EC2 인스턴스의 스냅샷을 나타냅니다.

## 필드

| 필드                                      | 유형    | 설명                                                                 |
| --------------------------------------- | ----- | ------------------------------------------------------------------ |
| AmiLaunchIndex                          | `정수`  | AMI 시작 인덱스입니다.                                                     |
| Architecture                            | `문자열` | 이미지의 아키텍처입니다.                                                      |
| BlockDeviceMappings                     | `목록`  | 인스턴스에 대한 블록 디바이스 매핑 항목입니다.                                         |
| CapacityReservationId                   | `문자열` | 용량 예약의 ID입니다.                                                      |
| CapacityReservationSpecification        | `맵`   | 용량 예약 대상 지정 옵션에 대한 정보입니다.                                          |
| ClientToken                             | `문자열` | 인스턴스가 시작될 때 제공된 토큰입니다.                                             |
| CpuOptions                              | `맵`   | 인스턴스의 CPU 옵션입니다.                                                   |
| EbsOptimized                            | `불리언` | 인스턴스가 Amazon EBS I/O에 최적화되어 있는지 여부입니다.                             |
| ElasticGpuAssociations                  | `목록`  | 인스턴스와 연결된 Elastic GPU입니다.                                          |
| ElasticInferenceAcceleratorAssociations | `목록`  | 인스턴스와 연결된 Elastic Inference 가속기입니다.                                |
| EnaSupport                              | `불리언` | ENA를 사용한 향상된 네트워킹이 활성화되어 있는지 여부입니다.                                |
| HibernationOptions                      | `맵`   | 인스턴스가 Amazon Web Services Nitro Enclaves용으로 활성화되어 있는지 여부입니다.       |
| Hypervisor                              | `문자열` | 인스턴스의 하이퍼바이저 유형입니다.                                                |
| IamInstanceProfile                      | `맵`   | 인스턴스와 연결된 IAM 인스턴스 프로필입니다.                                         |
| ImageId                                 | `문자열` | 인스턴스를 시작하는 데 사용된 AMI의 ID입니다.                                       |
| InstanceLifecycle                       | `문자열` | 이 인스턴스가 스팟 인스턴스인지 예약 인스턴스인지 여부입니다.                                 |
| InstanceType                            | `문자열` | 인스턴스 유형입니다.                                                        |
| KernelId                                | `문자열` | 이 인스턴스와 연결된 커널입니다.                                                 |
| KeyName                                 | `문자열` | 이 인스턴스가 연결된 키 페어와 함께 시작된 경우 키 페어의 이름입니다.                           |
| Licenses                                | `문자열` | 인스턴스의 라이선스 구성입니다.                                                  |
| MetadataOptions                         | `목록`  | 인스턴스의 메타데이터 옵션입니다.                                                 |
| Monitoring                              | `맵`   | 인스턴스의 모니터링입니다.                                                     |
| NetworkInterfaces                       | `목록`  |                                                                    |
| Placement                               | `맵`   | 해당하는 경우 인스턴스가 시작된 위치입니다.                                           |
| Platform                                | `문자열` | 인스턴스 운영 체제입니다.                                                     |
| PrivateDnsName                          | `문자열` | 인스턴스에 할당된 프라이빗 DNS 호스트 이름입니다.                                      |
| PrivateIpAddress                        | `문자열` | 인스턴스에 할당된 프라이빗 IPv4 주소입니다.                                         |
| ProductCodes                            | `목록`  | 이 인스턴스에 연결된 제품 코드입니다.                                              |
| PublicDnsName                           | `문자열` | 인스턴스에 할당된 퍼블릭 DNS 이름입니다.                                           |
| PublicIpAddress                         | `문자열` | 퍼블릭 IP 주소입니다.                                                      |
| RamdiskId                               | `문자열` | 이 인스턴스와 연결된 RAM 디스크입니다.                                            |
| RootDeviceName                          | `문자열` | 루트 디바이스 볼륨의 디바이스 이름입니다.                                            |
| RootDeviceType                          | `문자열` | AMI에서 사용한 루트 디바이스 유형입니다.                                           |
| SecurityGroups                          | `목록`  | 인스턴스의 보안 그룹입니다.                                                    |
| SourceDestCheck                         | `불리언` | 소스/대상 검사가 활성화되어 있는지 여부입니다.                                         |
| SpotInstanceRequestId                   | `문자열` | 스팟 인스턴스 요청의 ID입니다.                                                 |
| SriovNetSupport                         | `문자열` | Intel 82599 Virtual Function 인터페이스를 사용한 향상된 네트워킹이 활성화되어 있는지 여부입니다. |
| State                                   | `맵`   | 인스턴스의 현재 상태입니다.                                                    |
| StateReason                             | `맵`   | 가장 최근 상태 전환의 이유입니다.                                                |
| StateTransitionReason                   | `문자열` | 가장 최근 상태 전환의 이유입니다.                                                |
| SubnetId                                | `문자열` | 인스턴스가 실행 중인 서브넷의 ID입니다.                                            |
| VirtualizationType                      | `문자열` | 인스턴스의 가상화 유형입니다.                                                   |
| VpcId                                   | `문자열` | 인스턴스가 실행 중인 VPC의 ID입니다.                                            |

## 예시

<pre class="language-javascript"><code class="lang-javascript">{
    "AccountId": "123456789012",
    "AmiLaunchIndex": 0,
    "Architecture": "x86_64",
    "Arn": "arn:aws:ec2:us-west-2:123456789012:instance/i-1",
    "BlockDeviceMappings": [
        {
            "DeviceName": "/dev/xvda",
            "Ebs": {
                "AssociatedResource": null,
                "AttachTime": "2019-01-01T00:00:00Z",
                "DeleteOnTermination": true,
                "Operator": null,
                "Status": "attached",
                "VolumeId": "vol-1",
                "VolumeOwnerId": null
            }
        }
    ],
    "CapacityReservationId": null,
    "CapacityReservationSpecification": {
        "CapacityReservationPreference": "open",
        "CapacityReservationTarget": null
    },
    "ClientToken": null,
    "CpuOptions": {
        "AmdSevSnp": null,
        "CoreCount": 1,
        "ThreadsPerCore": 1
    },
    "EbsOptimized": false,
    "ElasticGpuAssociations": null,
    "ElasticInferenceAcceleratorAssociations": null,
    "EnaSupport": true,
    "HibernationOptions": {
        "Configured": false
    },
    "Hypervisor": "xen",
    "IamInstanceProfile": null,
    "Id": "i-1",
    "ImageId": "ami-1",
    "InstanceLifecycle": null,
    "InstanceType": "t2.micro",
    "KernelId": null,
    "KeyName": "ec2-instance-key-pair",
    "Licenses": null,
    "MetadataOptions": {
	      "HttpEndpoint": "enabled",
	      "HttpProtocolIpv6": "disabled",
	      "HttpPutResponseHopLimit": 2,
	      "HttpTokens": "required",
	      "InstanceMetadataTags": "disabled",
	      "State": "applied"
<strong>    },
</strong>    "Monitoring": {
        "State": "disabled"
    },
    "NetworkInterfaces": [
        {
            "Association": {
                "CarrierIp": null,
                "CustomerOwnedIp": null,
                "IpOwnerId": "amazon",
                "PublicDnsName": "ec2-111-111-111-111.us-west-2.compute.amazonaws.com",
                "PublicIp": "111.111.111.111"
            },
            "Attachment": {
                "AttachTime": "2019-01-01T00:00:00Z",
                "AttachmentId": "eni-attach-1",
                "DeleteOnTermination": true,
                "DeviceIndex": 0,
                "EnaQueueCount": null,
                "EnaSrdSpecification": null,
                "NetworkCardIndex": 0,
                "Status": "attached"
            },
            "ConnectionTrackingConfiguration": null,
            "Description": null,
            "Groups": [
                {
                    "GroupId": "sg-1",
                    "GroupName": "launch-wizard-1"
                }
            ],
            "InterfaceType": "interface",
            "Ipv4Prefixes": null,
            "Ipv6Addresses": null,
            "Ipv6Prefixes": null,
            "MacAddress": "00:00:de:ad:be:ef",
            "NetworkInterfaceId": "eni-1",
            "Operator": {
                "Managed": false,
                "Principal": null
            },
            "OwnerId": "123456789012",
            "PrivateDnsName": "ip-10-10-10-10.us-west-2.compute.internal",
            "PrivateIpAddress": "10.10.10.10",
            "PrivateIpAddresses": [
                {
                    "Association": {
                        "CarrierIp": null,
                        "CustomerOwnedIp": null,
                        "IpOwnerId": "amazon",
                        "PublicDnsName": "ec2-111-111-111-111.us-west-2.compute.amazonaws.com",
                        "PublicIp": "111.111.111.111"
                    },
                    "Primary": true,
                    "PrivateDnsName": "ip-10-10-10-10.us-west-2.compute.internal",
                    "PrivateIpAddress": "10.10.10.10"
                }
            ],
            "SourceDestCheck": true,
            "Status": "in-use",
            "SubnetId": "subnet-1",
            "VpcId": "vpc-1"
        }
    ],
    "Placement": {
        "Affinity": null,
        "AvailabilityZone": "us-west-2b",
        "AvailabilityZoneId": "usw2-az4",
        "GroupId": null,
        "GroupName": null,
        "HostId": null,
        "HostResourceGroupArn": null,
        "PartitionNumber": null,
        "SpreadDomain": null,
        "Tenancy": "default"
    },
    "Platform": null,
    "PrivateDnsName": "ip-10-10-10-10.us-west-2.compute.internal",
    "PrivateIpAddress": "10.10.10.10",
    "ProductCodes": null,
    "PublicDnsName": "ec2-111-111-111-111.us-west-2.compute.amazonaws.com",
    "PublicIpAddress": "111.111.111.111",
    "RamdiskId": null,
    "Region": "us-west-2",
    "ResourceId": "arn:aws:ec2:us-west-2:123456789012:instance/i-1",
    "ResourceType": "AWS.EC2.Instance",
    "RootDeviceName": "/dev/xvda",
    "RootDeviceType": "ebs",
    "SecurityGroups": [
        {
            "GroupId": "sg-1",
            "GroupName": "launch-wizard-1"
        }
    ],
    "SourceDestCheck": true,
    "SpotInstanceRequestId": null,
    "SriovNetSupport": null,
    "State": {
        "Code": 16,
        "Name": "running"
    },
    "StateReason": null,
    "StateTransitionReason": null,
    "SubnetId": "subnet-1",
    "Tags": {
        "Key1": "Value1"
    },
    "TimeCreated": "2019-01-01T00:00:00.000Z",
    "VirtualizationType": "hvm",
    "VpcId": "vpc-1"
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.panther.com/ko/cloud-scanning/cloud-resource-attributes/aws/ec2-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
