2022-06-22 00:37:49 -06:00
|
|
|
|
---
|
|
|
|
|
|
layout: docs
|
|
|
|
|
|
page_title: Deploy and Login
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
How to deploy HCP Boundary services and login for the first time.
|
|
|
|
|
|
---
|
|
|
|
|
|
|
2022-10-28 12:49:36 -06:00
|
|
|
|
# Deploy HCP Boundary and Login
|
|
|
|
|
|
|
2022-10-05 09:24:21 -06:00
|
|
|
|
HCP Boundary provides secure access to remote hosts and infrastructure
|
|
|
|
|
|
endpoints. Boundary enables secure connectivity to cloud service catalogs,
|
|
|
|
|
|
on-premise infrastructure, and Kubernetes clusters without needing to manage any
|
|
|
|
|
|
of the underlying systems or operations.
|
|
|
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
|
|
The Getting Started section uses HCP Boundary, a HashiCorp hosted and
|
|
|
|
|
|
fully-managed version of the Boundary product.
|
|
|
|
|
|
|
|
|
|
|
|
To get started with HCP Boundary, users need:
|
|
|
|
|
|
|
|
|
|
|
|
- A [HashiCorp Cloud Platform](https://portal.cloud.hashicorp.com/sign-up)
|
|
|
|
|
|
account
|
2023-01-20 18:17:34 -05:00
|
|
|
|
- [Installation](/boundary/tutorials/hcp-getting-started/hcp-getting-started-install)
|
2022-10-05 09:24:21 -06:00
|
|
|
|
of the Boundary CLI
|
2023-01-20 18:17:34 -05:00
|
|
|
|
- A [Boundary binary](/boundary/downloads) in your `$PATH`
|
2022-10-05 09:24:21 -06:00
|
|
|
|
- Optionally, an [installation of Boundary
|
2023-01-20 18:17:34 -05:00
|
|
|
|
Desktop](/boundary/tutorials/hcp-getting-started/hcp-getting-started-desktop-app)
|
2022-10-05 09:24:21 -06:00
|
|
|
|
|
|
|
|
|
|
If you prefer to get started on your local machine, refer to [Run and Login in
|
2023-01-20 18:17:34 -05:00
|
|
|
|
Dev Mode](/boundary/docs/oss/installing/run-and-login). For more information on Boundary
|
|
|
|
|
|
OSS and self-managed installations, refer to [Boundary OSS](/boundary/docs/oss).
|
2022-10-05 09:24:21 -06:00
|
|
|
|
|
2022-10-28 12:49:36 -06:00
|
|
|
|
## Deploy an HCP Boundary Cluster
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
To deploy an HCP Boundary instance:
|
|
|
|
|
|
|
|
|
|
|
|
1. Navigate to [HashiCorp Cloud Platform](https://portal.cloud.hashicorp.com/)
|
2022-07-12 12:29:35 -07:00
|
|
|
|
and login using your credentials.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
2022-10-28 12:49:36 -06:00
|
|
|
|
1. Click the **Boundary** tab, and then and click **Deploy Boundary** on the
|
|
|
|
|
|
right-hand pane.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. Fill out the following form details:
|
|
|
|
|
|
|
|
|
|
|
|
- Instance Name
|
|
|
|
|
|
- Administrator Username
|
|
|
|
|
|
- Administrator Password
|
|
|
|
|
|
|
|
|
|
|
|
1. Store the administrator username and password in a safe location. These
|
|
|
|
|
|
credentials will be used when authenticating using the Admin Console, CLI, or
|
|
|
|
|
|
Terraform.
|
|
|
|
|
|
|
|
|
|
|
|
1. Click **Deploy** after completing the form. It may take a few minutes to
|
|
|
|
|
|
initialize the HCP Boundary instance.
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
## Login to HCP Boundary
|
|
|
|
|
|
|
|
|
|
|
|
Once the deployment is complete, the HCP Boundary instance can be accessed
|
|
|
|
|
|
directly from the HCP Boundary portal using the credentials created during
|
2022-07-12 12:29:35 -07:00
|
|
|
|
setup.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
2022-07-12 12:29:35 -07:00
|
|
|
|
1. From the HCP Boundary portal page, click the **Open Admin UI** button.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. Enter the admin username and password you created when you deployed the new
|
|
|
|
|
|
instance, and click **Authenticate**.
|
|
|
|
|
|
|
2022-07-12 12:29:35 -07:00
|
|
|
|
1. The **Welcome to Boundary** setup wizard will launch automatically.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
There are two options for Boundary’s initial setup:
|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|
- Quick setup
|
|
|
|
|
|
- Manual
|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|

|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|
The **Quick setup** is recommended for new users, and generates a set of initial
|
2022-07-12 12:29:35 -07:00
|
|
|
|
resources to assist in connecting to your first target.
|
|
|
|
|
|
|
2023-02-14 12:47:06 -05:00
|
|
|
|

|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|
The **Manual** setup drops the user directly into Boundary, without any
|
|
|
|
|
|
provisioned resources.
|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|
Upon completion of the setup wizard, you will be logged into your HCP Boundary
|
|
|
|
|
|
instance's Global scope via the web UI. This is the default scope for all new
|
|
|
|
|
|
Boundary clusters.
|
|
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
|
|
<Tab heading="CLI">
|
|
|
|
|
|
|
|
|
|
|
|
1. In the HCP Boundary portal, open the **Boundary Overview** page, and click
|
|
|
|
|
|
the **copy icon** in the **Copy this into Boundary Desktop** section. This
|
2022-10-28 12:49:36 -06:00
|
|
|
|
copies your environment’s Boundary **Cluster URL**.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. Open a terminal session and set the `BOUNDARY_ADDR` environment variable to
|
2022-10-28 12:49:36 -06:00
|
|
|
|
the copied Cluster URL.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
2023-02-07 07:40:31 -08:00
|
|
|
|
```shell-session
|
|
|
|
|
|
$ export BOUNDARY_ADDR=<boundary-cluster-url>
|
|
|
|
|
|
```
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. Log in with the administrator credentials you created when you deployed the
|
|
|
|
|
|
HCP Boundary instance.
|
|
|
|
|
|
|
2023-02-07 07:40:31 -08:00
|
|
|
|
```shell-session
|
|
|
|
|
|
$ boundary authenticate
|
|
|
|
|
|
Please enter the login name (it will be hidden):
|
|
|
|
|
|
Please enter the password (it will be hidden):
|
|
|
|
|
|
|
|
|
|
|
|
Authentication information:
|
|
|
|
|
|
Account ID: acctpw_VOeNSFX8pQ
|
|
|
|
|
|
Auth Method ID: ampw_wxzojlKJLN
|
|
|
|
|
|
Expiration Time: Mon, 13 Feb 2023 12:35:32 MST
|
|
|
|
|
|
User ID: u_1vUkf5fPs9
|
|
|
|
|
|
|
|
|
|
|
|
The token was successfully stored in the chosen keyring and is not displayed here.
|
|
|
|
|
|
```
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
You are now logged into your HCP Boundary instance's Global scope via the CLI.
|
|
|
|
|
|
This is the default scope for all new Boundary clusters.
|
|
|
|
|
|
|
|
|
|
|
|
If you are on Windows or macOS, the system password store will be used to store
|
|
|
|
|
|
the new token. On any other operating system, you may get an error indicating
|
|
|
|
|
|
that the token could not be stored. Boundary defaults to using
|
|
|
|
|
|
[pass](https://www.passwordstore.org/) on these machines, which uses [GNU
|
|
|
|
|
|
Privacy Guard](https://gnupg.org/) to encrypt values. If it is not available,
|
|
|
|
|
|
the token will be displayed and can be stored in a system of your choice and
|
|
|
|
|
|
passed in via the `BOUNDARY_TOKEN` environment variable.
|
|
|
|
|
|
|
|
|
|
|
|
It is recommended to make use of `pass` or another alternative (such as any
|
|
|
|
|
|
implementation of the freedesktop.org Secret Service feature). Installation and
|
|
|
|
|
|
configuration of `pass` or other alternatives is beyond the scope of this
|
|
|
|
|
|
article; consult the documentation for `pass` or your specific OS distribution
|
|
|
|
|
|
help pages.
|
|
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
|
<Tab heading="Desktop Client">
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-20 18:17:34 -05:00
|
|
|
|
[Boundary Desktop](/boundary/downloads) can be used to
|
2022-06-22 00:37:49 -06:00
|
|
|
|
connect to HCP Boundary.
|
|
|
|
|
|
|
|
|
|
|
|
To get started with Boundary Desktop:
|
|
|
|
|
|
|
|
|
|
|
|
1. Install Boundary Desktop.
|
2022-10-28 12:49:36 -06:00
|
|
|
|
1. Enter your HCP Boundary instance’s Cluster URL.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
1. Enter the login name and password.
|
|
|
|
|
|
|
|
|
|
|
|
To authenticate using the Boundary desktop client, launch Boundary desktop
|
2022-10-28 12:49:36 -06:00
|
|
|
|
client and connect to boundary to using your environment's **Cluster URL**.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
2022-10-28 12:49:36 -06:00
|
|
|
|
You can find your environment’s Cluster URL In the HCP portal. Open the
|
2022-06-22 00:37:49 -06:00
|
|
|
|
**Boundary Overview** page and click the **copy icon** in the **Copy this into
|
2022-10-28 12:49:36 -06:00
|
|
|
|
Boundary Desktop** section. This copies your environment’s Boundary **Cluster
|
2022-06-22 00:37:49 -06:00
|
|
|
|
URL**.
|
|
|
|
|
|
|
|
|
|
|
|
The admin username and password from instance creation can be used for initial
|
|
|
|
|
|
setup. Once additional users have been created, they can also log in to HCP
|
|
|
|
|
|
Boundary using the Boundary Desktop app.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<video
|
|
|
|
|
|
muted
|
|
|
|
|
|
playsInline
|
|
|
|
|
|
autoPlay
|
|
|
|
|
|
loop
|
|
|
|
|
|
class="boundary-clickthrough-video boundary-clickthrough-desktop-video"
|
|
|
|
|
|
>
|
|
|
|
|
|
<source
|
|
|
|
|
|
type="video/mp4"
|
|
|
|
|
|
src="https://www.datocms-assets.com/2885/1613612831-boundary-desktop-clickthrough-authenticate-v1-0-0.mp4"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</video>
|
|
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
|
<Tab heading="Terraform">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can also use these overrides to configure the [Terraform provider for
|
2022-09-15 09:27:10 -05:00
|
|
|
|
Boundary](https://registry.terraform.io/providers/hashicorp/boundary):
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
|
provider "boundary" {
|
2022-10-28 12:49:36 -06:00
|
|
|
|
base_url = "hcp-boundary-cluster-url"
|
2022-06-22 00:37:49 -06:00
|
|
|
|
auth_method_id = "auth-method-id"
|
|
|
|
|
|
auth_method_username = "admin-username"
|
|
|
|
|
|
auth_method_password = "admin-password"
|
|
|
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2022-07-12 12:29:35 -07:00
|
|
|
|
To find your environment’s `base_url`:
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. In the HCP portal, open the **Boundary Overview** page.
|
2022-10-05 09:24:21 -06:00
|
|
|
|
1. Click the **copy icon** in the **Copy this into Boundary Desktop** section.
|
2022-10-28 12:49:36 -06:00
|
|
|
|
This copies your environment’s Boundary **Cluster URL**.
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
2022-07-12 12:29:35 -07:00
|
|
|
|
To find your environment’s default `auth_method_id`:
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
1. In your HCP Boundary portal, click the Admin UI button.
|
|
|
|
|
|
1. Log in to the Admin Console by entering the admin username and password you
|
|
|
|
|
|
created when you deployed the HCP Boundary instance, and click **Authenticate**.
|
|
|
|
|
|
1. Click **Auth Methods**.
|
|
|
|
|
|
1. Click the **copy icon** for the Password **Auth Method ID**
|
|
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
2022-07-12 12:29:35 -07:00
|
|
|
|
## Tutorial
|
|
|
|
|
|
|
2022-10-05 09:24:21 -06:00
|
|
|
|
- Refer to the [Create a Boundary Instance on
|
2023-01-20 18:17:34 -05:00
|
|
|
|
HCP](/boundary/tutorials/hcp-getting-started/hcp-getting-started-create)
|
2022-10-05 09:24:21 -06:00
|
|
|
|
tutorial to learn how to deploy a Boundary instance.
|
|
|
|
|
|
- Refer to the [Install Boundary
|
2023-01-20 18:17:34 -05:00
|
|
|
|
Desktop](/boundary/tutorials/hcp-getting-started/hcp-getting-started-desktop-app)
|
2022-10-05 09:24:21 -06:00
|
|
|
|
tutorial to learn how to use the Boundary desktop to connect to a running HCP
|
|
|
|
|
|
Boundary instance.
|
2022-07-12 12:29:35 -07:00
|
|
|
|
|
2022-06-22 00:37:49 -06:00
|
|
|
|
|
|
|
|
|
|
## Next Steps
|
|
|
|
|
|
|
2023-01-20 18:17:34 -05:00
|
|
|
|
See [connecting to your first target](/boundary/docs/getting-started/connect-to-target)
|
2022-06-22 00:37:49 -06:00
|
|
|
|
for how to use HCP Boundary to run your first SSH session.
|