Skip to content

Commit

Permalink
Remove key pair resource
Browse files Browse the repository at this point in the history
Key pair resource does not match with how SSH key is created.
  • Loading branch information
emilyllim committed Oct 26, 2023
1 parent 99b78b5 commit 2c57cf3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,10 @@ resource "aws_security_group" "ingress_all" {
}
}

resource "aws_key_pair" "benchrun_keypair" {
key_name = "bench-runner"
public_key = file("~/.ssh/id_rsa.pub")
}

resource "aws_instance" "bench_runner" {
ami = "ami-830c94e3"
instance_type = "t2.micro"
key_name = aws_key_pair.benchrun_keypair.key_name
key_name = "bench-runner"
vpc_security_group_ids = ["${aws_security_group.ingress_all.id}"]
subnet_id = aws_subnet.subnet1.id

Expand Down

0 comments on commit 2c57cf3

Please sign in to comment.