File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ data "hcp_project" "hcp_project" {
1313#
1414# https://registry.terraform.io/providers/hashicorp/hcp/latest/docs/resources/service_principal
1515resource "hcp_service_principal" "workload_sp" {
16- name = " hcp-terraform"
16+ name = " hcp-terraform"
1717 parent = data. hcp_project . hcp_project . resource_name
1818}
1919
@@ -39,7 +39,7 @@ resource "hcp_iam_workload_identity_provider" "tfc" {
3939 description = " Allow HCP Terraform agents to act as the ${ hcp_service_principal . workload_sp . name } service principal"
4040
4141 oidc = {
42- issuer_uri = " https://${ var . tfc_hostname } "
42+ issuer_uri = " https://${ var . tfc_hostname } "
4343 allowed_audiences = [var.tfc_hcp_audience]
4444 }
4545
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ resource "tfe_variable" "tfc_hcp_provider_resource_name" {
5050}
5151
5252# The value to use as the `aud` claim in run identity tokens
53- resource "tfe_variable" "tfc_hcp_audience" {
54- workspace_id = tfe_workspace. my_workspace . id
53+ resource "tfe_variable" "tfc_hcp_audience" {
54+ workspace_id = tfe_workspace. my_workspace . id
5555
56- key = " TFC_HCP_WORKLOAD_IDENTITY_AUDIENCE"
57- value = var. tfc_hcp_audience
58- category = " env"
56+ key = " TFC_HCP_WORKLOAD_IDENTITY_AUDIENCE"
57+ value = var. tfc_hcp_audience
58+ category = " env"
5959
60- description = " The value to use as the audience claim in run identity tokens"
61- }
60+ description = " The value to use as the audience claim in run identity tokens"
61+ }
You can’t perform that action at this time.
0 commit comments