From 3178817a7631834ce39e33f208a5b8f4ac8eb52c Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Wed, 25 Oct 2023 14:14:11 +0200 Subject: [PATCH] moritz feedback --- terraform/aws-constellation/variables.tf | 4 ---- terraform/constellation-cluster/install-constellation.sh | 8 +++----- terraform/constellation-cluster/main.tf | 5 ++--- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/terraform/aws-constellation/variables.tf b/terraform/aws-constellation/variables.tf index 54a6e2a2fd..e5a6312493 100644 --- a/terraform/aws-constellation/variables.tf +++ b/terraform/aws-constellation/variables.tf @@ -1,10 +1,6 @@ variable "name" { type = string description = "Name of your Constellation" - validation { - condition = length(var.name) <= 10 - error_message = "The length of the name of the Constellation must be <= 10 characters" - } } variable "image" { diff --git a/terraform/constellation-cluster/install-constellation.sh b/terraform/constellation-cluster/install-constellation.sh index dcafe4dfea..a7067167db 100755 --- a/terraform/constellation-cluster/install-constellation.sh +++ b/terraform/constellation-cluster/install-constellation.sh @@ -1,9 +1,8 @@ #!/bin/bash -VERSION="latest" -if ! command -v constellation &> /dev/null; then +if ! [ -f ./constellation ]; then OS=$(uname -s) ARCH=$(uname -m) - + VERSION="latest" URL="" if [[ $OS == "Darwin" ]]; then @@ -21,10 +20,9 @@ if ! command -v constellation &> /dev/null; then fi if [ -z "$URL" ]; then - echo "Unsupported OS or architecture" + echo "OS \"$OS\" and/or architecture \"$ARCH\" is not supported." exit 1 else curl -o constellation -LO $URL - sudo install constellation /usr/local/bin/constellation fi fi diff --git a/terraform/constellation-cluster/main.tf b/terraform/constellation-cluster/main.tf index d2be3a7539..cd07ca121d 100644 --- a/terraform/constellation-cluster/main.tf +++ b/terraform/constellation-cluster/main.tf @@ -39,7 +39,6 @@ resource "terraform_data" "config_generate" { # TODO how to handle CSP specific config without CSP specific input? resource "terraform_data" "csp_config" { - count = var.csp == "aws" ? 1 : 0 provisioner "local-exec" { command = <