Skip to content

Commit 90b3e99

Browse files
committed
[#327] Remove key name
1 parent d2b9d31 commit 90b3e99

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

templates/addons/aws/modules/bastion/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ resource "aws_launch_template" "bastion_instance" {
33
name_prefix = "${local.name_prefix}-"
44
image_id = data.aws_ami.amazon_linux_2023.id
55
instance_type = var.instance_type
6-
key_name = var.key_name
76

87
iam_instance_profile {
98
name = var.iam_instance_profile

templates/addons/aws/modules/bastion/variables.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ variable "volume_size" {
4242
variable "device_name" {
4343
description = "The device name for the EBS volume"
4444
type = string
45-
default = "/dev/sdf"
46-
}
47-
48-
variable "key_name" {
49-
description = "The name of the key pair to use for the instance"
50-
type = string
51-
default = "" // Set empty to disable key pair
45+
default = "/dev/xvda"
5246
}
5347

5448
variable "iam_instance_profile" {

templates/terraform/.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
terraform 1.13.3
2-
trivy 0.47.0
2+
trivy 0.69.2

0 commit comments

Comments
 (0)