From 4d9aedecb71ee21e76cce47d359cd4445cc9d2e4 Mon Sep 17 00:00:00 2001 From: Stefanie-A Date: Tue, 15 Oct 2024 12:45:51 +0100 Subject: [PATCH] fix: key pair --- .github/workflows/deploy.yaml | 2 -- .gitignore | 3 ++- infrastructure/main.tf | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 46e4f65..74222a9 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/.gitignore b/.gitignore index eba74f4..b4b0e31 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -venv/ \ No newline at end of file +venv/ +terraform.tfstate \ No newline at end of file diff --git a/infrastructure/main.tf b/infrastructure/main.tf index fcf658f..f7e371a 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -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" {