Skip to content

Commit

Permalink
Comment out key_name
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Oct 16, 2024
1 parent 50a0c2c commit 14a4a82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions web/deploy/terraform/modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 5 additions & 5 deletions web/deploy/terraform/modules/ec2/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
Expand Down

0 comments on commit 14a4a82

Please sign in to comment.