Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyfrances committed May 8, 2024
1 parent 5d36071 commit 398aa28
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion tests/standalone-mounted-amazon-linux-2023/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ locals {

friendly_name_prefix = random_string.friendly_name.id
load_balancing_scheme = "PUBLIC"
utility_module_test = var.license_file == null
}
15 changes: 1 addition & 14 deletions tests/standalone-mounted-amazon-linux-2023/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions tests/standalone-mounted-amazon-linux-2023/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 398aa28

Please sign in to comment.