diff --git a/IaC/aws/terraform/ec2.tf b/IaC/aws/terraform/ec2.tf index 4b60a51..7ae848a 100644 --- a/IaC/aws/terraform/ec2.tf +++ b/IaC/aws/terraform/ec2.tf @@ -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 - } }