Skip to content

Commit

Permalink
fix: key pair
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanie-A committed Oct 15, 2024
1 parent ed94d3e commit 4d9aede
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
hosts: ${{ secrets.HOST_USERNAME }}@${{ secrets.EC2_HOST }}
privatekey: ${{ secrets.EC2_KEY }}
command: |
sudo apt update -y
sudo apt install docker.io -y
sudo apt install docker-compose-plugin -y
docker pull stefnie/api-image:latest
docker pull stefnie/uri-image:latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
venv/
venv/
terraform.tfstate
4 changes: 3 additions & 1 deletion infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ data "aws_vpc" "default" {
}

variable "key_name" {

description = "Name of the SSH key pair"
type = string
default = "my-key"
}

resource "tls_private_key" "key-pair" {
Expand Down

0 comments on commit 4d9aede

Please sign in to comment.