mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-19 20:44:52 -04:00
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:
parent
f2c1bdbf82
commit
7c5b95bbcc
6 changed files with 43 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue