Systems Manager 문서에 태그 지정 - AWS Systems Manager

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

Systems Manager 문서에 태그 지정

이 섹션의 주제에서는 Systems Manager 문서(SSM 문서)에서 태그를 사용하는 방법을 설명합니다.

태그를 지정하여 문서 만들기

사용자 정의 SSM 문서를 생성할 때 태그를 추가할 수 있습니다.

자세한 내용은 다음 주제를 참조하세요.

기존 문서에 태그 추가

Systems Manager 콘솔 또는 명령줄을 사용하여 소유한 사용자 정의 SSM 문서에 태그를 추가할 수 있습니다.

기존 SSM 문서에 태그 추가(콘솔)

  1. AWS Systems Manager 콘솔(https://console.aws.amazon.com/systems-manager/)을 엽니다.

  2. 탐색 창에서 Documents를 선택합니다.

    -또는-

    AWS Systems Manager 홈 페이지가 처음 열리면 메뉴 아이콘( 
    The menu icon
  )을 선택하여 탐색 창을 연 다음 탐색 창에서 Documents를 선택합니다.

  3. 내 소유(Owned by me) 탭을 선택합니다.

  4. 태그를 추가할 문서의 이름을 선택한 다음 세부 정보(Details) 탭을 선택합니다.

  5. 태그(Tags) 섹션에서 편집(Edit)을 선택한 다음 하나 이상의 키 값 태그 페어를 추가합니다.

  6. Save를 선택합니다.

기존 SSM 문서에 태그 추가(명령줄)

기존 SSM 문서에 태그를 추가하려면(명령줄)
  1. 원하는 명령줄 도구를 사용하여 다음 명령을 실행함으로써 태그를 지정할 수 있는 문서 목록을 확인합니다.

    Linux & macOS
    aws ssm list-documents
    Windows
    aws ssm list-documents
    PowerShell
    Get-SSMDocumentList

    태그를 지정할 문서의 이름을 기록해 둡니다.

  2. 다음 명령을 실행하여 문서에 태그를 지정합니다. 각 example resource placeholder를 사용자의 정보로 바꿉니다.

    Linux & macOS
    aws ssm add-tags-to-resource \ --resource-type "Document" \ --resource-id "document-name" \ --tags "Key=tag-key,Value=tag-value"
    Windows
    aws ssm add-tags-to-resource ^ --resource-type "Document" ^ --resource-id "document-name" ^ --tags "Key=tag-key,Value=tag-value"
    PowerShell
    $tag = New-Object Amazon.SimpleSystemsManagement.Model.Tag
    $tag.Key = "tag-key"
    $tag.Value = "tag-value"
    Add-SSMResourceTag ` -ResourceType "Document" ` -ResourceId "document-name" ` -Tag $tag ` -Force

    명령이 성공하면 출력이 표시되지 않습니다.

  3. 다음 명령을 실행하여 문서 태그를 확인합니다.

    Linux & macOS
    aws ssm list-tags-for-resource \ --resource-type "Document" \ --resource-id "document-name"
    Windows
    aws ssm list-tags-for-resource ^ --resource-type "Document" ^ --resource-id "document-name"
    PowerShell
    Get-SSMResourceTag ` -ResourceType "Document" ` -ResourceId "document-name"

SSM 문서에서 태그 제거

Systems Manager 콘솔이나 명령줄을 사용하여 SSM 문서에서 태그를 제거할 수 있습니다.

SSM 문서에서 태그 제거(콘솔)

  1. AWS Systems Manager 콘솔(https://console.aws.amazon.com/systems-manager/)을 엽니다.

  2. 탐색 창에서 Documents를 선택합니다.

    -또는-

    AWS Systems Manager 홈 페이지가 처음 열리면 메뉴 아이콘( 
    The menu icon
  )을 선택하여 탐색 창을 연 다음 탐색 창에서 Documents를 선택합니다.

  3. 내 소유(Owned by me) 탭을 선택합니다.

  4. 태그를 제거할 문서의 이름을 선택한 다음 세부 정보(Details) 탭을 선택합니다.

  5. 태그(Tags) 섹션에서 편집(Edit)을 선택한 다음, 더 이상 필요하지 않은 태그 페어 옆에 있는 제거(Remove)를 선택합니다.

  6. Save를 선택합니다.

SSM 문서에서 태그 제거(명령줄)

  1. 원하는 명령줄 도구를 사용하여 다음 명령을 실행함으로써 계정의 문서를 나열합니다.

    Linux & macOS
    aws ssm list-documents
    Windows
    aws ssm list-documents
    PowerShell
    Get-SSMDocumentList

    태그를 제거할 문서의 이름을 확인합니다.

  2. 다음 명령을 실행하여 문서에서 태그를 제거합니다. 각 example resource placeholder를 사용자의 정보로 바꿉니다.

    Linux & macOS
    aws ssm remove-tags-from-resource \ --resource-type "Document" \ --resource-id "document-name" \ --tag-key "tag-key"
    Windows
    aws ssm remove-tags-from-resource ^ --resource-type "Document" ^ --resource-id "document-name" ^ --tag-key "tag-key"
    PowerShell
    Remove-SSMResourceTag ` -ResourceId "document-name" ` -ResourceType "Document" ` -TagKey "tag-key" ` -Force

    명령이 성공하면 출력이 표시되지 않습니다.

  3. 다음 명령을 실행하여 문서 태그를 확인합니다.

    Linux & macOS
    aws ssm list-tags-for-resource \ --resource-type "Document" \ --resource-id "document-name"
    Windows
    aws ssm list-tags-for-resource ^ --resource-type "Document" ^ --resource-id "document-name"
    PowerShell
    Get-SSMResourceTag ` -ResourceType "Document" ` -ResourceId "document-name"