Skip to main content
In this lesson, you’ll learn how to download and install the Vault binary on an AWS EC2 instance running Amazon Linux 2. By following these steps, you’ll have Vault ready for development and testing in minutes.
The image is a webpage from HashiCorp Vault, showcasing features for managing secrets and protecting sensitive data, with options to try the cloud or download the CLI.

Download the Vault Binary

Head over to the Vault download page and choose:
  • Platform: Linux
  • Distribution: Amazon Linux
  • Architecture: 64 ARM64 (or your target)
Copy the link address for your selected build, or navigate directly to releases.hashicorp.com for all available versions.
The image is a webpage from HashiCorp Vault, showcasing features for managing secrets and protecting sensitive data, with options to try the cloud or download the CLI.
Here’s an example Vault policy to control access to your application secrets:

Installation Methods


Adding the HashiCorp YUM Repository

To install Vault via YUM, run:

Downloading the Binary Manually

  1. Visit releases.hashicorp.comVault1.7.1.
  2. Copy the link for vault_1.7.1_linux_amd64.zip.
  3. On your EC2 instance, download it with curl.
The image shows a webpage from releases.hashicorp.com, listing various software tools and projects such as "consul," "nomad," and "terraform."
A quick listing of Vault 1.7.1 assets:

Installing the Binary on Amazon Linux 2

  1. SSH into your Amazon Linux 2 instance.
  2. Verify Vault is not installed:
  3. Download the ZIP to /tmp/vault.zip (replace <your_download_url>):
  4. Unzip and move the binary into your PATH:
  5. Exit root, then confirm Vault is available:
  6. Check the installed version:

Starting a Development Server

Development mode runs entirely in-memory, starts unsealed with a single unseal key, and is not suitable for production environments.
Launch Vault in dev mode:
You may need to set the Vault address:

That’s all it takes to manually install the Vault binary, place it in your PATH, and spin up a development server on Amazon Linux 2. Happy secret management!

Watch Video