

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

# Windows용 Guard 설치
<a name="setting-up-windows"></a>

Cargo 또는 Chocolatey를 통해 Windows AWS CloudFormation Guard 용를 설치할 수 있습니다.

## 사전 조건
<a name="w2aab8c16b5"></a>

명령줄 인터페이스에서 Guard를 빌드하려면 Visual Studio 2019용 빌드 도구를 설치해야 합니다.

1. Visual [Studio 2019용 빌드 도구 웹 사이트에서 Microsoft Visual C\$1\$1 빌드 도구를](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019) 다운로드합니다.

1. 설치 프로그램을 실행하고 기본값을 선택합니다.

## Guard from Cargo 설치
<a name="install-guard-from-cargo"></a>

Cargo는 Rust 패키지 관리자입니다. 다음 단계를 완료하여 Cargo를 포함하는 Rust를 설치합니다. 그런 다음 Guard from Cargo를 설치합니다.

1. [Rust를 다운로드](https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup)한 다음 **rustup-init.exe**를 실행합니다.

1. 명령 프롬프트에서 기본 옵션인 **1**을 선택합니다.

   명령은 다음 출력을 반환합니다.

   ```
   Rust is installed now. Great!
       
       To get started you may need to restart your current shell.
       This would reload its PATH environment variable to include
       Cargo's bin directory (%USERPROFILE%\.cargo\bin).
       
       Press the Enter key to continue.
   ```

1. 설치를 완료하려면 **Enter** 키를 누릅니다.

1. Cargo가 설치된 상태에서 다음 명령을 실행하여 Guard를 설치합니다.

   ```
   cargo install cfn-guard
   ```

   *결과*: Guard를 성공적으로 설치했습니다.

   1. (선택 사항) Guard 설치를 확인하려면 다음 명령을 실행합니다.

     ```
     cfn-guard --version
     ```

     명령은 다음 출력을 반환합니다.

     ```
     cfn-guard 3.1.2
     ```

## Chocolatey에서 Guard 설치
<a name="install-guard-from-chocolatey"></a>

Chocolatey는 Windows용 패키지 관리자입니다. Chocolatey를 설치하려면 다음 단계를 완료하세요. 그런 다음 Chocolatey에서 Guard를 설치합니다.

1. 이 가이드에 따라 [Chocolatey를 설치합니다](https://chocolatey.org/install).

1. Chocolatey가 설치된 상태에서 다음 명령을 실행하여 Guard를 설치합니다.

   ```
   choco install cloudformation-guard
   ```

   *결과*: Guard를 성공적으로 설치했습니다.

   1. (선택 사항) Guard 설치를 확인하려면 다음 명령을 실행합니다.

     ```
     cfn-guard --version
     ```

     명령은 다음 출력을 반환합니다.

     ```
     cfn-guard 3.1.2
     ```