From 7c4d6ae48b88552e0093ad3e3a2c809c6c0117ff Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Mon, 6 Nov 2023 09:40:49 +0100 Subject: [PATCH] Hooks impl --- examples/ssh/aem.tf | 21 ++++++++++++ examples/ssh/aws.tf | 20 ----------- internal/client/client.go | 20 ++++++++++- internal/provider/instance_client.go | 31 +++++++++++++++++ internal/provider/instance_resource.go | 46 ++++++++++++++++++++++++-- 5 files changed, 114 insertions(+), 24 deletions(-) diff --git a/examples/ssh/aem.tf b/examples/ssh/aem.tf index 75ee3d2..fa139fa 100644 --- a/examples/ssh/aem.tf +++ b/examples/ssh/aem.tf @@ -16,6 +16,27 @@ resource "aem_instance" "single" { lib_dir = "aem/home/lib" config_file = "aem/default/etc/aem.yml" } + hook { + bootstrap = <