Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Jul 13, 2024
1 parent e2fe1a5 commit 246c94a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions IaC/aws/terraform/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,8 @@ resource "aws_instance" "ec2example" {
associate_public_ip_address = true
key_name = aws_key_pair.ec2_key_pair.key_name

provisioner "remote-exec" {
inline = [
"echo 'Waiting for instance to be fully ready...'",
"sleep 120"
]
}

provisioner "local-exec" {
command = "ansible-playbook -i '${self.public_ip},' ${path.module}/../../ansible/apache.yml"
}

connection {
type = "ssh"
user = "ubuntu"
host = self.public_ip
}
}

0 comments on commit 246c94a

Please sign in to comment.