Skip to content

Commit

Permalink
chore: Update EC2 Terraform configuration to use ANSIBLE_HOST_KEY_CHE…
Browse files Browse the repository at this point in the history
…CKING=False
  • Loading branch information
nilgaar committed Jul 13, 2024
1 parent 9d68fb9 commit 1aa3544
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/deploy_aws_vpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
name: Setup OpenTofu

- name: Destroy VPC
run: |
cd ./IaC/aws/terraform/
Expand Down
2 changes: 1 addition & 1 deletion IaC/aws/terraform/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_instance" "ec2example" {
provisioner "remote-exec" {
inline = [
"echo 'Waiting for instance to be fully ready...'",
"sleep 60"
"sleep 45"
]
}

Expand Down

0 comments on commit 1aa3544

Please sign in to comment.