Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add simple getting started #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,34 @@ description: |-

This provider configures Boundary.

## Example Usage
## Getting Started

Do not keep your authentication password in HCL for production environments, use Terraform environment variables.

The following example sets up the provider for authenticating with Boundary running in [dev mode](https://boundaryproject.io/docs/getting-started#what-is-dev-mode).

### Start Boundary in Dev Mode

First, we need an instance of Boundary running locally, start it up in dev mode and override the username and password:

```bash
$ boundary dev -password=passpass -login-name=myuser
```

Now use the values pass in above to configure your provider:

```hcl
provider "boundary" {
addr = "http://127.0.0.1:9200"
auth_method_id = "ampw_1234567890" # changeme
password_auth_method_login_name = "myuser" # changeme
password_auth_method_password = "passpass" # changeme
auth_method_id = "ampw_1234567890"
password_auth_method_login_name = "myuser"
password_auth_method_password = "passpass"
}
```

### Provision a Boundary Target
TBD

## Complex Usage

```hcl
Expand Down