terraform-provider: warn about microservice version changes (#2730)

* terraform-provider: update data source examples

* terraform-provider: warn about destructive microservice changes

* terraform-provider: use `name` variable

* terraform-provider: only perform pre-apply checks on upgrades

* terraform-provider: fix conditional

* terraform-provider: remove obsolete version checks
This commit is contained in:
Moritz Sanft 2023-12-18 13:55:44 +01:00 committed by GitHub
parent f2c1bdbf82
commit 7c5b95bbcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 43 additions and 7 deletions

View file

@ -1,5 +1,7 @@
data "constellation_image" "example" {} # Fill accordingly for the CSP
data "constellation_attestation" "test" {
csp = "aws"
attestation_variant = "aws-sev-snp"
image_version = "v2.13.0"
image = data.constellation_image.example.image
}

View file

@ -1,5 +1,5 @@
data "constellation_image" "example" {
image_version = "v2.13.0"
version = "v2.13.0"
attestation_variant = "aws-sev-snp"
csp = "aws"
region = "eu-west-1"

View file

@ -39,14 +39,14 @@ resource "random_bytes" "measurement_salt" {
module "aws_iam" {
// replace $VERSION with the Constellation version you want to use, e.g., v2.14.0
source = "https://github.com/edgelesssys/constellation/releases/download/$VERSION/terraform-module.zip//terraform-module/iam/aws"
name_prefix = "constell"
name_prefix = local.name
region = local.region
}
module "aws_infrastructure" {
// replace $VERSION with the Constellation version you want to use, e.g., v2.14.0
source = "https://github.com/edgelesssys/constellation/releases/download/$VERSION/terraform-module.zip//terraform-module/aws"
name = "constell"
name = local.name
node_groups = {
control_plane_default = {
role = "control-plane"