Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Opening the AWS Cloud9 IDE
lock
Installing HashiCorp Vault
lock
Starting the Vault Sever in Development Mode
lock
Understanding the LDAP Directory
lock
Creating Vault Policies for the Organization
lock
Configuring Vault LDAP Authentication
lock
Testing the LDAP Authentication and Access Policies
lock
Validate AWS Lab
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

HashiCorp Vault is a powerful tool for managing secrets, encryption as a service, and privileged access maangement. Vault can be installed by using a pre-compiled binary or by compiling from source code

In this Lab Step, you will install using a pre-compiled binary for 64-bit Linux systems, and enable command completions for an improved command-line experience.

 

Instructions

1. Download the pre-compiled binary Zip file:

Copy code
wget https://releases.hashicorp.com/vault/0.10.3/vault_0.10.3_linux_amd64.zip -O /tmp/vault.zip

Version 0.10.3 is installed to ensure a consistent experience in the Lab even as newer versions are released.

 

2. Unzip the vault binary to a directory in your PATH:

Copy code
sudo unzip /tmp/vault.zip -d /usr/local/bin/

The /usr/local/bin directory is part of your PATH variable, so you can now use vault from any directory.

 

3. Enter the following to confirm that Vault has been installed:

Copy code
vault

alt

 

4. Install Vault command completions:

Copy code
vault -autocomplete-install

This command adds a command to your shell configuration file so that completions are enabled every time you log in. However, you need to run the added command in your current shell to enable completions for it.

 

5. Run the command added to your shell configuration file:

Copy code
source ~/.bashrc

 

6. Type vault followed by a space, and press tab twice to see available command completions:

alt

Now, you can always press tab twice to see available completions or autocomplete a command if there is only one completion at any point of entering a Vault command.

 

Summary

In this Lab Step, you installed HashiCorp Vault using a pre-compiled binary and enabled Vault command completions.