diff --git a/tests/standalone-mounted-amazon-linux-2023/locals.tf b/tests/standalone-mounted-amazon-linux-2023/locals.tf index 4353901f..d90be593 100644 --- a/tests/standalone-mounted-amazon-linux-2023/locals.tf +++ b/tests/standalone-mounted-amazon-linux-2023/locals.tf @@ -12,5 +12,4 @@ locals { friendly_name_prefix = random_string.friendly_name.id load_balancing_scheme = "PUBLIC" - utility_module_test = var.license_file == null } diff --git a/tests/standalone-mounted-amazon-linux-2023/main.tf b/tests/standalone-mounted-amazon-linux-2023/main.tf index 42c448c1..3608e70b 100644 --- a/tests/standalone-mounted-amazon-linux-2023/main.tf +++ b/tests/standalone-mounted-amazon-linux-2023/main.tf @@ -10,19 +10,6 @@ resource "random_string" "friendly_name" { special = false } -# Keypair for SSH -# --------------- -resource "tls_private_key" "main" { - algorithm = "RSA" -} - -resource "local_file" "private_key_pem" { - filename = "${path.module}/work/private-key.pem" - - content = tls_private_key.main.private_key_pem - file_permission = "0600" -} - # Store TFE License as secret # --------------------------- module "secrets" { @@ -60,7 +47,7 @@ module "standalone" { iam_role_policy_arns = ["arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"] iact_subnet_list = ["0.0.0.0/0"] instance_type = "m5.xlarge" - key_name = local.utility_module_test ? var.key_name : "standalone-mounted-amazon-linux-2023" + key_name = "standalone-mounted-amazon-linux-2023" kms_key_arn = module.kms.key load_balancing_scheme = local.load_balancing_scheme node_count = 1 diff --git a/tests/standalone-mounted-amazon-linux-2023/variables.tf b/tests/standalone-mounted-amazon-linux-2023/variables.tf index 43b60800..1b1e26a3 100644 --- a/tests/standalone-mounted-amazon-linux-2023/variables.tf +++ b/tests/standalone-mounted-amazon-linux-2023/variables.tf @@ -21,9 +21,3 @@ variable "distribution" { description = "The distribution to use for the instance." default = "ubuntu" } - -variable "key_name" { - default = null - description = "The name of the key pair to be used for SSH access to the EC2 instance(s)." - type = string -}