mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-08 15:02:18 -04:00
terraform_provider: correctly pass down CC technology
This commit is contained in:
parent
55d865887f
commit
b4811b8b76
2 changed files with 12 additions and 0 deletions
10
.github/workflows/e2e-test-provider-example.yml
vendored
10
.github/workflows/e2e-test-provider-example.yml
vendored
|
@ -266,11 +266,21 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
region=$(echo ${{ inputs.regionZone || 'europe-west3-b' }} | rev | cut -c 3- | rev)
|
region=$(echo ${{ inputs.regionZone || 'europe-west3-b' }} | rev | cut -c 3- | rev)
|
||||||
|
|
||||||
|
case "${{ inputs.attestationVariant }}" in
|
||||||
|
"gcp-sev-snp")
|
||||||
|
cc_tech="SEV_SNP"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
cc_tech="SEV"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
cat >> _override.tf <<EOF
|
cat >> _override.tf <<EOF
|
||||||
locals {
|
locals {
|
||||||
project_id = "constellation-e2e"
|
project_id = "constellation-e2e"
|
||||||
region = "${region}"
|
region = "${region}"
|
||||||
zone = "${{ inputs.regionZone || 'europe-west3-b' }}"
|
zone = "${{ inputs.regionZone || 'europe-west3-b' }}"
|
||||||
|
cc_technology = "${cc_tech}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
cat _override.tf
|
cat _override.tf
|
||||||
|
|
|
@ -24,6 +24,7 @@ locals {
|
||||||
control_plane_count = 3
|
control_plane_count = 3
|
||||||
worker_count = 2
|
worker_count = 2
|
||||||
instance_type = "n2d-standard-4"
|
instance_type = "n2d-standard-4"
|
||||||
|
cc_technology = "SEV"
|
||||||
|
|
||||||
master_secret = random_bytes.master_secret.hex
|
master_secret = random_bytes.master_secret.hex
|
||||||
master_secret_salt = random_bytes.master_secret_salt.hex
|
master_secret_salt = random_bytes.master_secret_salt.hex
|
||||||
|
@ -79,6 +80,7 @@ module "gcp_infrastructure" {
|
||||||
region = local.region
|
region = local.region
|
||||||
project = local.project_id
|
project = local.project_id
|
||||||
internal_load_balancer = false
|
internal_load_balancer = false
|
||||||
|
cc_technology = local.cc_technology
|
||||||
}
|
}
|
||||||
|
|
||||||
data "constellation_attestation" "foo" {
|
data "constellation_attestation" "foo" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue