Files
threshold/enos/ci/hcp-resources/README.md
T
Michael Li 30b999e261 test(hcp): Define TF module for long-lived resources (#5045)
* test(hcp): Define TF module for long-lived resources

* CR: Move outputs and variables to its own files
2024-09-05 12:08:07 -04:00

1.1 KiB

Resources for HCP testing

This Terraform module defines resources needed to test against a long-lived HCP cluster.

Prerequisites

  • Gain access to the TFC hashicorp-qti org
  • Generate a TFC API token under Account Settings > Tokens

Usage

# Get AWS account credentials
doormat login
source <(doormat aws export --account ${AWS_ACCOUNT})

terraform login # enter TFC API token to the hashicorp-qti org
terraform init
terraform plan
terraform apply

The output contains information that we will need. For sensitive values, we will need to use these commands.

terraform state pull | jq .outputs.worker_tokens.value
terraform state pull | jq .outputs.bucket_secret_access_key.value

You can also find output information using the TFC UI by navigating to the boundary-hcp-resources workspace.

If any of these values have changed, we will need to update the Vault instance that stores these values.

Notes

  • Created a boundary-hcp-resources workspace in the TFC org
    • Set Workflow to CLI-Driven
    • Set Execution Mode to Local