Installing Guard for Windows
You can install AWS CloudFormation Guard for Windows through Cargo or through Chocolatey.
Prerequisites
To build Guard from the command line interface, you must install the Build Tools for Visual Studio 2019.
-
Download Microsoft Visual C++ build tools from the Build Tools for Visual Studio 2019
website. -
Run the installer, and select the defaults.
Install Guard from Cargo
Cargo is the Rust package manager. Complete the following steps to install Rust, which includes Cargo. Then, install Guard from Cargo.
-
Download Rust
and then run rustup-init.exe. -
From the command prompt, choose 1, which is the default option.
The command returns the following output.
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.
-
To finish the installation, press the Enter key.
-
With Cargo installed, run the following command to install Guard.
cargo install cfn-guard
Results: You have successfully installed Guard.
-
(Optional) To confirm the installation of Guard, run the following command.
cfn-guard --version
The command returns the following output.
cfn-guard 3.0.0
-
Install Guard from Chocolatey
Chocolatey is a package manager for Windows. Complete the following steps to install Chocolatey. Then, install Guard from Chocolatey.
-
Follow this guide to install Chocolatey
-
With Chocolatey installed, run the following command to install Guard.
choco install cloudformation-guard
Results: You have successfully installed Guard.
-
(Optional) To confirm the installation of Guard, run the following command.
cfn-guard --version
The command returns the following output.
cfn-guard 3.0.0
-