From 1aa3544ee8de79a42900d248b9a1a426bde0246b Mon Sep 17 00:00:00 2001 From: Nil Date: Sun, 14 Jul 2024 01:45:34 +0200 Subject: [PATCH] chore: Update EC2 Terraform configuration to use ANSIBLE_HOST_KEY_CHECKING=False --- .github/workflows/deploy_aws_vpc.yml | 14 -------------- IaC/aws/terraform/ec2.tf | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/deploy_aws_vpc.yml b/.github/workflows/deploy_aws_vpc.yml index 9753dfd..8f52119 100644 --- a/.github/workflows/deploy_aws_vpc.yml +++ b/.github/workflows/deploy_aws_vpc.yml @@ -39,20 +39,6 @@ jobs: cd ./IaC/aws/terraform/ tofu apply -auto-approve -var="AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -var="AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" - destroy: - name: Destroy Infrastructure - runs-on: ubuntu-latest - needs: deploy - - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_INFRA_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_INFRA_KEY }} - steps: - - uses: actions/checkout@v3 - - - uses: opentofu/setup-opentofu@v1.0.3 - name: Setup OpenTofu - - name: Destroy VPC run: | cd ./IaC/aws/terraform/ diff --git a/IaC/aws/terraform/ec2.tf b/IaC/aws/terraform/ec2.tf index ae4a141..2dc5ada 100644 --- a/IaC/aws/terraform/ec2.tf +++ b/IaC/aws/terraform/ec2.tf @@ -14,7 +14,7 @@ resource "aws_instance" "ec2example" { provisioner "remote-exec" { inline = [ "echo 'Waiting for instance to be fully ready...'", - "sleep 60" + "sleep 45" ] }