No description
  • Go 99%
  • Shell 0.8%
  • HCL 0.1%
Find a file
2026-03-27 08:39:32 -07:00
.github update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
.vscode Since we only have one test suite, remove integration build flag 2022-11-07 13:49:55 -07:00
docs feat: Add inclusion of no-code module w/mod list. 2024-11-18 23:20:51 -05:00
examples [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
META.d [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
mocks TF-34533 adding policy set project exclusion. (#1292) 2026-03-27 09:28:57 +05:30
scripts [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
test-fixtures [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
.copywrite.hcl Add copywrite headers and GH Action 2023-01-27 11:42:40 -06:00
.gitignore chore: remove CI dependencies on personal repos (#1283) 2026-02-19 10:06:10 -08:00
.golangci.yml update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
admin_opa_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_opa_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_organization.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_organization_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_run.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_run_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_run_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_sentinel_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_sentinel_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_cost_estimation.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_cost_estimation_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_customization.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_customization_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_general.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_general_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_oidc.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_oidc_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_saml.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_saml_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_smtp.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_smtp_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_setting_twilio.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_setting_twilio_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_terraform_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_terraform_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_user.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_user_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
admin_workspace.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
admin_workspace_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
agent.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
agent_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
agent_pool.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
agent_pool_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
agent_token.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
agent_token_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
apply.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
apply_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
audit_trail.go update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
audit_trail_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
aws_oidc_configuration.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
aws_oidc_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
azure_oidc_configuration.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
azure_oidc_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
CHANGELOG.md Adding changelog changes for new release (#1299) 2026-03-27 08:39:32 -07:00
comment.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
comment_integration_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
configuration_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
configuration_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
const.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
cost_estimate.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
cost_estimate_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
data_retention_policy.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
entitlement_helper_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
errors.go Fix lint issues 2025-12-18 16:26:22 -05:00
example_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
gcp_oidc_configuration.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
gcp_oidc_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
generate_mocks.sh [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
github_app_installation.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
github_app_installation_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
go.mod update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
go.sum chore: prepare release (#1269) 2026-01-07 13:08:39 -08:00
gpg_key.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
gpg_key_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
helper_test.go test takes account of default token expiration date (#1300) 2026-03-27 07:51:56 -07:00
hyok_configuration.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
hyok_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
hyok_customer_key_version.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
hyok_customer_key_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
hyok_encrypted_data_key.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
hyok_encrypted_data_key_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
internal_run_task.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
internal_workspace_run_task.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
ip_ranges.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
ip_ranges_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
LICENSE [COMPLIANCE] Update MPL 2.0 LICENSE 2022-10-12 20:44:07 +00:00
logreader.go update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
logreader_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
Makefile Fix generated mock filename 2023-03-16 16:34:34 -04:00
notification_configuration.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
notification_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
oauth_client.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
oauth_client_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
oauth_token.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
oauth_token_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
organization.go Merge branch 'main' into jspiker/user-token-enablement 2025-12-08 16:40:24 -05:00
organization_audit_configuration.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
organization_audit_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
organization_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
organization_membership.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
organization_membership_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
organization_tags.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
organization_tags_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
organization_token.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
organization_token_integration_test.go test takes account of default token expiration date (#1300) 2026-03-27 07:51:56 -07:00
plan.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
plan_export.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
plan_export_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
plan_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
policy.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_check.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_check_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
policy_evaluation.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_evaluation_beta_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
policy_set.go TF-34533 adding policy set project exclusion. (#1292) 2026-03-27 09:28:57 +05:30
policy_set_integration_test.go TF-34533 adding policy set project exclusion. (#1292) 2026-03-27 09:28:57 +05:30
policy_set_parameter.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_set_parameter_integration_test.go fix test to use randomKeyValue for keys & values instead of randomstring (#1296) 2026-03-20 09:16:27 -04:00
policy_set_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
policy_set_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
project.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
projects_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
query_runs.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
query_runs_integration_test.go Fixes tests for Search in Go TFE 2026-02-05 14:38:19 -08:00
README.md remove API coverage section from readme file. It hasn't been used or updated since it was added (#1033) 2025-01-13 10:24:04 -08:00
registry_module.go IPL-9014 Support name and provider when unconventional display identifier (#1277) 2026-02-05 14:59:21 -05:00
registry_module_integration_test.go IPL-9014 Support name and provider when unconventional display identifier (#1277) 2026-02-05 14:59:21 -05:00
registry_module_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
registry_no_code_module.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
registry_no_code_module_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
registry_provider.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
registry_provider_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
registry_provider_platform.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
registry_provider_platform_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
registry_provider_version.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
registry_provider_version_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
request.go update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
request_hooks.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
request_hooks_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
request_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
reserved_tag_key.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
reserved_tag_key_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
run.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_event.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_event_integration_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
run_task.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_task_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
run_task_request.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_tasks_integration.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
run_tasks_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
run_trigger.go Add ReadWithOptions function to RunTriggers 2026-01-28 15:59:15 -05:00
run_trigger_integration_test.go Merge pull request #1275 from hashicorp/TF-25381/run-trigger-includes-field 2026-02-02 13:26:35 -05:00
ssh_key.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
ssh_key_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack.go [TF-33692] Add SpeculativeEnabled in create/update options for a Stack 2026-02-04 13:24:31 -05:00
stack_configuration.go update stack configuration statuses, use type in struct 2025-12-15 14:47:59 -05:00
stack_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_configuration_summary.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
stack_configuration_summary_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_deployment.go Add new Stacks resources (#1226) 2025-10-13 12:56:12 -07:00
stack_deployment_groups.go update deployment group statuses, use type in struct 2025-12-15 14:48:18 -05:00
stack_deployment_groups_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_deployment_groups_summary.go fix(stacks): fixes to support atlas integration tests (#1243) 2025-11-04 15:45:12 -08:00
stack_deployment_groups_summary_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_deployment_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_deployment_runs.go update deployment run statuses, use type in struct 2025-12-15 14:48:30 -05:00
stack_deployment_runs_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_deployment_steps.go update deployment step statuses, use type in struct 2025-12-15 14:48:46 -05:00
stack_deployment_steps_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_diagnostic.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
stack_diagnostic_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
stack_integration_test.go Add assertion for SpeculativeEnabled default value 2026-02-04 16:44:38 -05:00
stack_state.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
stack_state_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
state_version.go Formatting issues 2026-02-10 16:07:20 -06:00
state_version_integration_test.go Test case fix 2026-02-10 16:07:20 -06:00
state_version_output.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
state_version_output_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
subscription_updater_test.go Update subscription_updater_test.go (#1281) 2026-02-10 16:57:11 -05:00
tag.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
task_result.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
task_stages.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
task_stages_integration_beta_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
task_stages_integration_test.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team_access.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team_access_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
team_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
team_member.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team_member_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
team_project_access.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team_project_access_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
team_token.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
team_token_integration_test.go test takes account of default token expiration date (#1300) 2026-03-27 07:51:56 -07:00
test_config.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 2) (#1259) 2025-12-05 11:16:45 -08:00
test_run.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
test_run_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
test_variables.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
test_variables_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
tfe.go update go version to 1.25 (#1297) 2026-03-24 13:49:40 -04:00
tfe_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
tfe_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
type_helpers.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
user.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
user_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
user_token.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
user_token_integration_test.go test takes account of default token expiration date (#1300) 2026-03-27 07:51:56 -07:00
validations.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
validations_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
variable.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
variable_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
variable_set.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
variable_set_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
variable_set_variable.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
variable_set_variable_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
vault_oidc_configuration.go Hold Your Own Key Support (#1201) 2025-09-23 14:37:09 -04:00
vault_oidc_configuration_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
workspace.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
workspace_integration_test.go tests: fix flaky test (#1271) 2026-01-13 15:50:55 -08:00
workspace_resources.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
workspace_resources_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00
workspace_run_task.go [COMPLIANCE] Update Copyright and License Headers (Batch 2 of 2) (#1258) 2026-01-05 13:02:37 -06:00
workspace_run_task_integration_test.go Parallelize test execution (#1265) 2026-01-07 11:15:23 -08:00

HCP Terraform and Terraform Enterprise Go Client

Tests GitHub license GoDoc Go Report Card GitHub issues

The official Go API client for HCP Terraform and Terraform Enterprise.

This client supports the HCP Terraform V2 API. As Terraform Enterprise is a self-hosted distribution of HCP Terraform, this client supports both HCP Terraform and Terraform Enterprise use cases. In all package documentation and API, the platform will always be stated as 'Terraform Enterprise' - but a feature will be explicitly noted as only supported in one or the other, if applicable (rare).

Version Information

Almost always, minor version changes will indicate backwards-compatible features and enhancements. Occasionally, function signature changes that reflect a bug fix may appear as a minor version change. Patch version changes will be used for bug fixes, performance improvements, and otherwise unimpactful changes.

Example Usage

Construct a new TFE client, then use the various endpoints on the client to access different parts of the Terraform Enterprise API. The following example lists all organizations.

import (
  "context"
  "log"

  "github.com/hashicorp/go-tfe"
)

config := &tfe.Config{
	Address: "https://tfe.local",
	Token: "insert-your-token-here",
  RetryServerErrors: true,
}

client, err := tfe.NewClient(config)
if err != nil {
	log.Fatal(err)
}

orgs, err := client.Organizations.List(context.Background(), nil)
if err != nil {
	log.Fatal(err)
}

Using the default config with env vars

The default configuration makes use of the TFE_ADDRESS and TFE_TOKEN environment variables.

  1. TFE_ADDRESS - URL of a HCP Terraform or Terraform Enterprise instance. Example: https://tfe.local
  2. TFE_TOKEN - An API token for the HCP Terraform or Terraform Enterprise instance.

Note: Alternatively, you can set TFE_HOSTNAME which serves as a fallback for TFE_ADDRESS. It will only be used if TFE_ADDRESS is not set and will resolve the host to an https scheme. Example: tfe.local => resolves to https://tfe.local

The environment variables are used as a fallback to configure TFE client if the Address or Token values are not provided as in the cases below:

Using the default configuration

import (
  "context"
  "log"

  "github.com/hashicorp/go-tfe"
)

// Passing nil to tfe.NewClient method will also use the default configuration
client, err := tfe.NewClient(tfe.DefaultConfig())
if err != nil {
	log.Fatal(err)
}

orgs, err := client.Organizations.List(context.Background(), nil)
if err != nil {
	log.Fatal(err)
}

When Address or Token has no value

import (
  "context"
  "log"

  "github.com/hashicorp/go-tfe"
)

config := &tfe.Config{
	Address: "",
	Token: "",
}

client, err := tfe.NewClient(config)
if err != nil {
	log.Fatal(err)
}

orgs, err := client.Organizations.List(context.Background(), nil)
if err != nil {
	log.Fatal(err)
}

Documentation

For complete usage of the API client, see the full package docs.

Examples

See the examples directory.

Running tests

See TESTS.md.

Issues and Contributing

See CONTRIBUTING.md

Releases

See RELEASES.md