Skip to content

Commit 52c87f8

Browse files
committed
fix: use repo ssh public key for terraform validate
1 parent 03cae13 commit 52c87f8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

terraform/lab04-key.pub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIq1IdSCmEm19mjtNcK+5XpAAFMlm0+DIHKf4Zw4aFPT github-actions-deploy

terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ resource "aws_security_group" "lab04_sg" {
4949

5050
resource "aws_key_pair" "lab04" {
5151
key_name = "lab04-key"
52-
public_key = file("${pathexpand("~/.ssh/id_ed25519.pub")}")
52+
public_key = file("${path.module}/lab04-key.pub")
5353
}
5454

5555
resource "aws_instance" "lab04_vm" {

0 commit comments

Comments
 (0)