AWS CLI를 사용한 AWS Outposts 예시 - AWS Command Line Interface

이 문서는 AWS CLI의 버전 1에만 해당합니다. AWS CLI의 버전 2와 관련된 문서는 버전 2 사용 설명서를 참조하세요.

AWS CLI를 사용한 AWS Outposts 예시

다음 코드 예시에서는 AWS Outposts에서 AWS Command Line Interface를 사용하여 작업을 수행하고 일반적인 시나리오를 구현하는 방법을 보여줍니다.

작업은 대규모 프로그램에서 발췌한 코드이며 컨텍스트에 맞춰 실행해야 합니다. 작업은 관련 시나리오의 컨텍스트에 따라 표시되며, 개별 서비스 함수를 직접적으로 호출하는 방법을 보여줍니다.

각 예시에는 전체 소스 코드에 대한 링크가 포함되어 있으며, 여기에서 컨텍스트에 맞춰 코드를 설정하고 실행하는 방법에 대한 지침을 찾을 수 있습니다.

주제

작업

다음 코드 예시에서는 get-outpost-instance-types의 사용 방법을 보여줍니다.

AWS CLI

Outpost에서 인스턴스 유형 가져오기

다음 get-outpost-instance-types 예시에서는 지정된 Outpost의 인스턴스 유형을 가져옵니다.

aws outposts get-outpost-instance-types \ --outpost-id op-0ab23c4567EXAMPLE

출력:

{ "InstanceTypes": [ { "InstanceType": "c5d.large" }, { "InstanceType": "i3en.24xlarge" }, { "InstanceType": "m5d.large" }, { "InstanceType": "r5d.large" } ], "OutpostId": "op-0ab23c4567EXAMPLE", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE" }

자세한 내용은 AWS Outposts 사용자 안내서Outpost에서 인스턴스 시작을 참조하세요.

다음 코드 예시에서는 get-outpost의 사용 방법을 보여줍니다.

AWS CLI

Outpost 세부 정보 가져오기

다음 get-outpost 예시에서는 지정된 Outpost의 세부 정보를 표시합니다.

aws outposts get-outpost \ --outpost-id op-0ab23c4567EXAMPLE

출력:

{ "Outpost": { "OutpostId": "op-0ab23c4567EXAMPLE", "OwnerId": "123456789012", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE", "SiteId": "os-0ab12c3456EXAMPLE", "Name": "EXAMPLE", "LifeCycleStatus": "ACTIVE", "AvailabilityZone": "us-west-2a", "AvailabilityZoneId": "usw2-az1", "Tags": {} } }

자세한 내용은 AWS Outposts 사용자 안내서Outposts 작업을 참조하세요.

  • API 세부 정보는 AWS CLI 명령 참조GetOutpost를 참조하세요.

다음 코드 예시에서는 list-outposts의 사용 방법을 보여줍니다.

AWS CLI

Outposts 나열

다음 list-outposts 예시에서는 AWS 계정의 Outposts를 나열합니다.

aws outposts list-outposts

출력:

{ "Outposts": [ { "OutpostId": "op-0ab23c4567EXAMPLE", "OwnerId": "123456789012", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE", "SiteId": "os-0ab12c3456EXAMPLE", "Name": "EXAMPLE", "Description": "example", "LifeCycleStatus": "ACTIVE", "AvailabilityZone": "us-west-2a", "AvailabilityZoneId": "usw2-az1", "Tags": { "Name": "EXAMPLE" } }, { "OutpostId": "op-4fe3dc21baEXAMPLE", "OwnerId": "123456789012", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-4fe3dc21baEXAMPLE", "SiteId": "os-0ab12c3456EXAMPLE", "Name": "EXAMPLE2", "LifeCycleStatus": "ACTIVE", "AvailabilityZone": "us-west-2a", "AvailabilityZoneId": "usw2-az1", "Tags": {} } ] }

자세한 내용은 AWS Outposts 사용자 안내서Outposts 작업을 참조하세요.

  • API 세부 정보는 AWS CLI 명령 참조ListOutposts를 참조하세요.

다음 코드 예시에서는 list-sites의 사용 방법을 보여줍니다.

AWS CLI

사이트 나열

다음 list-sites 예시에서는 AWS 계정에서 사용 가능한 Outpost 사이트를 나열합니다.

aws outposts list-sites

출력:

{ "Sites": [ { "SiteId": "os-0ab12c3456EXAMPLE", "AccountId": "123456789012", "Name": "EXAMPLE", "Description": "example", "Tags": {} } ] }

자세한 내용은 AWS Outposts 사용자 안내서Outposts 작업을 참조하세요.

  • API 세부 정보는 AWS CLI 명령 참조ListSites를 참조하세요.