title | description |
---|---|
HCP LEARN BOUNDARY - AZURE |
HashiCorp Bounday on Azure |
- HCP Boundary
- Org Level Service Principal
- Boundary CLI Client
- Azure
- Terraform
# // HCP CLOUD SERVICE PRINCIPAL
export HCP_CLIENT_ID=
export HCP_CLIENT_SECRET=
# // BOUNDARY
export BOUNDARY_ADDR=
export BOUNDARY_AUTH_METHOD_ID=
# // BOUNDARY PROVIDER INPUT VARIABLES
export TF_VAR_boundary_addr=
export TF_VAR_auth_method_id=
export TF_VAR_auth_method_login_name=
export TF_VAR_auth_method_password=
terraform init
terraform plan
terraform apply
boundary authenticate
boundary connect ssh -target-id=$TARGET_ID -host-id=$HOST_ID -- -v
boundary connect ssh -target-id=tssh_1234567890 -host-id=hst_1234567890
Name | Version |
---|---|
terraform | >=0.12 |
azapi | ~>1.5 |
azurerm | ~>2.0 |
boundary | 1.1.9 |
hcp | 0.69.0 |
random | ~>3.0 |
Name | Version |
---|---|
azapi | 1.10.0 |
azurerm | 2.99.0 |
boundary | 1.1.9 |
hcp | 0.69.0 |
random | 3.5.1 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
auth_method_id | n/a | string |
n/a | yes |
auth_method_login_name | HCP Boundary Cluster User. | string |
"boundary-user" |
no |
auth_method_password | HCP Boundary Cluster Password. | string |
"boundary-pass" |
no |
boundary_addr | n/a | string |
n/a | yes |
boundary_cluster_id | n/a | string |
"boundary_cluster_id_default" |
no |
common_tags | Map of common tags for taggable Azure resources. | map(string) |
{} |
no |
friendly_name_prefix | Friendly name prefix for unique Azure resource naming across deployments. | string |
n/a | yes |
hcp_boundary_cluster_tier | HCP Boundary Cluster Tier | string |
"Standard" |
no |
location | Location of the resource group. | string |
"westus3" |
no |
resource_group_location | Location of the resource group. | string |
"westus3" |
no |
resource_group_name | Name of Resource Group to create. | string |
"boundary-learn" |
no |
resource_group_name_prefix | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | string |
"rg" |
no |
resource_group_name_suffix | Suffix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | string |
"rg" |
no |
username | The username for the local account that will be created on the new VM. | string |
"azureadmin" |
no |
- https://registry.terraform.io/modules/Azure/virtual-machine/azurerm/latest
- https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-terraform
- https://github.com/markchristopherwest/boundary-session-recording
- https://tekanaid.com/posts/hashicorp-boundary-make-sure-your-human-to-machine-access-is-secure
- https://github.com/samgabrail/boundary-intro
- https://youtu.be/pGfSITzcTQ0
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-intro
- https://developer.hashicorp.com/boundary/tutorials/oss-administration/oss-manage-intro
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-scopes
- https://developer.hashicorp.com/boundary/tutorials/oss-administration/oss-manage-scopes
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-targets
- https://developer.hashicorp.com/boundary/tutorials/oss-administration/oss-manage-targets
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-users-groups
- https://developer.hashicorp.com/boundary/tutorials/oss-administration/oss-manage-users-groups
- https://developer.hashicorp.com/boundary/docs/common-workflows/manage-users-groups
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-roles
- https://developer.hashicorp.com/boundary/tutorials/oss-administration/oss-manage-roles
- https://developer.hashicorp.com/boundary/docs/concepts/security/permissions#permission-grant-formats
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-ssh-cred-injection
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-ssh-cred-injection
- https://www.hashicorp.com/resources/understanding-the-power-of-hashicorp-boundary-ssh-credential-vault-multi-hop
- https://developer.hashicorp.com/boundary/tutorials/hcp-administration/hcp-manage-workers
- https://developer.hashicorp.com/boundary/docs/configuration/worker
- https://gist.github.com/nicholasjackson/cff881edcd3e31aecb665dfc73562de2
- https://developer.hashicorp.com/terraform/language/functions/split
- https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=linux
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | jq
Thanks for your help @markchristopherwest