Enabled adb remotely

This commit is contained in:
butomo1989
2018-08-29 13:02:44 +02:00
parent efd1f07e58
commit e45bc0010f
3 changed files with 13 additions and 1 deletions
+10
View File
@@ -117,6 +117,16 @@ resource "aws_instance" "geny_aws_$index" {
Name = "EK-\${data.aws_ami.geny_aws_$index.id}"
}
count = 1
provisioner "remote-exec" {
connection {
type = "ssh"
user = "shell"
private_key = "\${file("~/.ssh/id_rsa")}"
}
script = "/root/enable_adb.sh"
}
}
output "image_id_$index" {