Skip to content

Commit

Permalink
Changed service principal name
Browse files Browse the repository at this point in the history
  • Loading branch information
giulio-giunta committed Jun 23, 2024
1 parent 9d6f033 commit ae496a9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion azure/terraform-azure/infra-secrets.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# data "hcp_iam_policy" "infra" {
# bindings = [
# {
# role = "roles/secrets.app-secret-reader"
# principals = [
# data.hcp_service_principal.infra_reader
# ]
# }
# ]
# }

resource "hcp_service_principal" "infra_reader" {
name = "infra-reader"
name = "secret-reader"
}

resource "hcp_vault_secrets_app_iam_binding" "infra_reader" {
Expand Down Expand Up @@ -43,3 +54,7 @@ data "hcp_vault_secrets_secret" "terraform_token" {
secret_name = "terraform_token"
}

# resource "hcp_vault_secrets_app_iam_policy" "infra" {
# resource_name = data.hcp_vault_secrets_app.infra.app_name
# policy_data = data.hcp_iam_policy.infra.policy_data
# }

0 comments on commit ae496a9

Please sign in to comment.