File tree 2 files changed +9
-9
lines changed
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" {
13
13
#
14
14
# https://registry.terraform.io/providers/hashicorp/hcp/latest/docs/resources/service_principal
15
15
resource "hcp_service_principal" "workload_sp" {
16
- name = " hcp-terraform"
16
+ name = " hcp-terraform"
17
17
parent = data. hcp_project . hcp_project . resource_name
18
18
}
19
19
@@ -39,7 +39,7 @@ resource "hcp_iam_workload_identity_provider" "tfc" {
39
39
description = " Allow HCP Terraform agents to act as the ${ hcp_service_principal . workload_sp . name } service principal"
40
40
41
41
oidc = {
42
- issuer_uri = " https://${ var . tfc_hostname } "
42
+ issuer_uri = " https://${ var . tfc_hostname } "
43
43
allowed_audiences = [var.tfc_hcp_audience]
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ resource "tfe_variable" "tfc_hcp_provider_resource_name" {
50
50
}
51
51
52
52
# 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
55
55
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"
59
59
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