• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Boundary
  • Install
  • Tutorials
  • Documentation
  • API
  • Try Cloud(opens in new tab)
  • Sign up
HCP Administration

Skip to main content
8 tutorials
  • Introduction to HCP Boundary
  • Manage Scopes with HCP Boundary
  • Manage Targets with HCP Boundary
  • Manage Users and Groups with HCP Boundary
  • Manage Roles and Permissions with HCP Boundary
  • Manage Sessions with HCP Boundary
  • Self-Managed Worker Registration with HCP Boundary
  • SSH Credential Injection with HCP Boundary

  • Resources

  • Tutorial Library
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  1. Developer
  2. Boundary
  3. Tutorials
  4. HCP Administration
  5. Introduction to HCP Boundary

Introduction to HCP Boundary

  • 3min

  • HCPHCP
  • BoundaryBoundary
  • TerraformTerraform

The Getting Started tutorials gave you a tour of the Admin Console UI and examined different Boundary resources.

This sequence of tutorials demonstrates common resource management operations for HCP Boundary. Complete the tutorials in sequential order to create the complete set of resources shown in the diagram below.

Resources

Prerequisites

To complete this collection of tutorials, you need:

  • A Boundary binary in your PATH. This tutorial uses the 0.9.0 version of Boundary.

  • Terraform 0.13.0 or greater provides an optional workflow for these tutorials. The binary must be available in your PATH.

  • Access to an HCP Boundary instance.

  • A publicly accessible Ubuntu instance (for use as a target).

  • An ssh key-pair that can be used to authenticate with the Ubuntu instance.

Note: Ubuntu is used in this tutorial for demonstration purposes only. You can follow this guide to create a publicly accessible EC2 instance to use for this tutorial.

To perform the tasks described in this collection, you need to have an HCP Boundary environment. Refer to the Getting Started tutorial to set up HCP Boundary.

Get setup

Start by authenticating to Boundary using the Cluster URL copied from HCP, and the Auth Method ID copied from the Admin Console UI. Export these values as environment variables, and then log in.

First, open a shell session and export the BOUNDARY_ADDR environment variable. Visit the Create a Boundary Instance on HCP tutorial if you need to locate this value.

$ export BOUNDARY_ADDR=<HCP-CLUSTER-URL>

Now export the BOUNDARY_AUTH_METHOD_ID environment variable. Visit the Getting Started with the Admin Console tutorial if you need to locate this value.

$ export BOUNDARY_AUTH_METHOD_ID=<PASSWORD-AUTH-METHOD-ID>

Now log in to Boundary by specifying the login name and password for the admin user for the HCP Boundary cluster. Visit the Getting Started on HCP tutorial for a reminder of how this user was set up. In the example below, the login name is admin. Enter password at the Please enter the password (it will be hidden): prompt.

$ boundary authenticate password \
    -auth-method-id=$BOUNDARY_AUTH_METHOD_ID \
    -login-name=admin

Next, the Manage Scopes tutorial demonstrates basic resource management and permissions modeling.

 Back to Collection
 Next

On this page

  1. Introduction to HCP Boundary
  2. Prerequisites
  3. Get setup
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)