diff --git a/web/deploy/terraform/modules/ec2/main.tf b/web/deploy/terraform/modules/ec2/main.tf index 2934a3ea..8bfb3f6a 100644 --- a/web/deploy/terraform/modules/ec2/main.tf +++ b/web/deploy/terraform/modules/ec2/main.tf @@ -15,10 +15,10 @@ provider "aws" { # EC2 Instance resource "aws_instance" "deployment" { - ami = data.aws_ami.ubuntu.id - instance_type = var.instance_type - subnet_id = data.terraform_remote_state.shared.outputs.subnet_id - key_name = var.ec2_key_name + ami = data.aws_ami.ubuntu.id + instance_type = var.instance_type + subnet_id = data.terraform_remote_state.shared.outputs.subnet_id + # key_name = var.ec2_key_name vpc_security_group_ids = [data.terraform_remote_state.shared.outputs.security_group_id] associate_public_ip_address = true root_block_device { diff --git a/web/deploy/terraform/modules/ec2/variables.tf b/web/deploy/terraform/modules/ec2/variables.tf index f9c31e65..f51289e3 100644 --- a/web/deploy/terraform/modules/ec2/variables.tf +++ b/web/deploy/terraform/modules/ec2/variables.tf @@ -15,11 +15,11 @@ variable "instance_type" { type = string } -variable "ec2_key_name" { - description = "Key name of the Key Pair to use for the instance; which can be managed using the `aws_key_pair` resource." - default = "dsst2023" - type = string -} +# variable "ec2_key_name" { +# description = "Key name of the Key Pair to use for the instance; which can be managed using the `aws_key_pair` resource." +# default = "dsst2023" +# type = string +# } variable "ec2_root_block_device_size" { description = "Size of the volume in gibibytes (GiB)."