From dbf5484f73bd7f38e9a24e8cea7c1e3a39a850e6 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Thu, 28 Jul 2022 17:18:56 +0100 Subject: [PATCH] reverted settings Signed-off-by: Mark Bolwell --- .github/workflows/linux_benchmark_testing.yml | 1 - .github/workflows/main.tf | 21 ------------------- 2 files changed, 22 deletions(-) diff --git a/.github/workflows/linux_benchmark_testing.yml b/.github/workflows/linux_benchmark_testing.yml index b35264f..fcaa943 100644 --- a/.github/workflows/linux_benchmark_testing.yml +++ b/.github/workflows/linux_benchmark_testing.yml @@ -58,7 +58,6 @@ jobs: chmod 700 .ssh echo $PRIVATE_KEY > .ssh/github_actions.pem chmod 600 .ssh/github_actions.pem - file .ssh/github_actions.pem && cat .ssh/github_actions.pem ### Build out the server - name: Terraform_Init diff --git a/.github/workflows/main.tf b/.github/workflows/main.tf index d322cda..b231d2a 100644 --- a/.github/workflows/main.tf +++ b/.github/workflows/main.tf @@ -3,11 +3,6 @@ provider "aws" { region = var.aws_region } -// Read local file not created via terraform -data "local_file" "github_actions" { - filename = "${path.module}/${var.private_key}" -} - // Create a security group with access to port 22 and port 80 open to serve HTTP traffic data "aws_vpc" "default" { @@ -64,22 +59,6 @@ resource "aws_instance" "testing_vm" { root_block_device { delete_on_termination = true } - # SSH into instance - will ensure server is up before next step in workflows - connection { - # Host name - host = self.public_ip - # The default username for our AMI - user = var.ami_username - # Private key for connection - private_key = data.local_file.github_actions.content - # Type of connection - type = "ssh" - } - provisioner "remote-exec" { - inline = [ - "echo 'hello_world'", - ] - } } // generate inventory file