Skip to content

Commit

Permalink
fix public_key indices
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Jan 31, 2024
1 parent de6a8fb commit f19e19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/build_and_release/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ resource "google_privateca_certificate" "hab_csf_ci" {
}
public_key {
format = "PEM"
key = base64encode(data.google_kms_crypto_key_version.hab_csf_ci[each.key].public_key[each.key].pem)
key = base64encode(data.google_kms_crypto_key_version.hab_csf_ci[each.key].public_key[0].pem)
}
}
}
Expand Down Expand Up @@ -498,7 +498,7 @@ resource "google_privateca_certificate" "hab_img_ci" {
}
public_key {
format = "PEM"
key = base64encode(data.google_kms_crypto_key_version.hab_img_ci[each.key].public_key[each.key].pem)
key = base64encode(data.google_kms_crypto_key_version.hab_img_ci[each.key].public_key[0].pem)
}
}
}
Expand Down

0 comments on commit f19e19d

Please sign in to comment.