fix(terraform): AWS 38/37238/3
authorpmikus <peter.mikus@protonmail.ch>
Thu, 22 Sep 2022 11:53:51 +0000 (13:53 +0200)
committerPeter Mikus <peter.mikus@protonmail.ch>
Thu, 22 Sep 2022 12:58:05 +0000 (12:58 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Id762a0848d66a1c1264fdf94be13c3a091bb6d78

fdio.infra.terraform/terraform-aws-2n-aws-c5n/main.tf
fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-2n-aws-c5n/versions.tf
fdio.infra.terraform/terraform-aws-3n-aws-c5n/main.tf
fdio.infra.terraform/terraform-aws-3n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-3n-aws-c5n/versions.tf

index 699992d..892aed3 100644 (file)
@@ -51,8 +51,6 @@ module "subnet_d" {
 # Create Private Key
 resource "tls_private_key" "private_key" {
   algorithm   = var.private_key_algorithm
-  ecdsa_curve = var.private_key_ecdsa_curve
-  rsa_bits    = var.private_key_rsa_bits
 }
 
 # Create Key Pair
index e809feb..e35dc65 100644 (file)
@@ -24,19 +24,7 @@ variable "testbed_name" {
 variable "private_key_algorithm" {
   description = "The name of the algorithm to use for the key."
   type        = string
-  default     = "RSA"
-}
-
-variable "private_key_ecdsa_curve" {
-  description = "When algorithm is ECDSA, the name of the elliptic curve to use."
-  type        = string
-  default     = "P521"
-}
-
-variable "private_key_rsa_bits" {
-  description = "When algorithm is RSA, the size of the generated RSA key in bits."
-  type        = number
-  default     = 4096
+  default     = "ED25519"
 }
 
 # Variables for Placement Group
index 0eead1f..8bbe0c4 100644 (file)
@@ -6,14 +6,14 @@ terraform {
     }
     null = {
       source  = "hashicorp/null"
-      version = "~> 3.1.0"
+      version = ">= 3.1.1"
     }
     tls = {
       source  = "hashicorp/tls"
-      version = "~> 3.1.0"
+      version = ">= 4.0.3"
     }
     vault = {
-      version = ">=2.22.1"
+      version = ">= 2.22.1"
     }
   }
   required_version = ">= 1.0.4"
index bb8efff..255f95a 100644 (file)
@@ -61,8 +61,6 @@ module "subnet_d" {
 # Create Private Key
 resource "tls_private_key" "private_key" {
   algorithm   = var.private_key_algorithm
-  ecdsa_curve = var.private_key_ecdsa_curve
-  rsa_bits    = var.private_key_rsa_bits
 }
 
 # Create Key Pair
index 3f6a96d..ef7ec36 100644 (file)
@@ -24,20 +24,7 @@ variable "testbed_name" {
 variable "private_key_algorithm" {
   description = "The name of the algorithm to use for the key."
   type        = string
-  default     = "RSA"
-}
-
-variable "private_key_ecdsa_curve" {
-  description = "When algorithm is ECDSA, the name of the elliptic curve to use."
-  type        = string
-  default     = "P521"
-}
-
-variable "private_key_rsa_bits" {
-  description = "When algorithm is RSA, the size of the generated RSA key in bits."
-  type        = number
-  default     = 4096
-}
+  default     = "ED25519"
 
 # Variables for Placement Group
 variable "placement_group_strategy" {
index 0eead1f..8bbe0c4 100644 (file)
@@ -6,14 +6,14 @@ terraform {
     }
     null = {
       source  = "hashicorp/null"
-      version = "~> 3.1.0"
+      version = ">= 3.1.1"
     }
     tls = {
       source  = "hashicorp/tls"
-      version = "~> 3.1.0"
+      version = ">= 4.0.3"
     }
     vault = {
-      version = ">=2.22.1"
+      version = ">= 2.22.1"
     }
   }
   required_version = ">= 1.0.4"