diff --git a/instance_scripts/cloud-init.yml b/terraform/cloud-init.yml
similarity index 100%
rename from instance_scripts/cloud-init.yml
rename to terraform/cloud-init.yml
diff --git a/terraform/main.tf b/terraform/main.tf
index 33dc5c890d5c96f8e619084a8d01e8451ea19838..20540c53feb046e0cbc362677f4286c583278902 100644
--- a/terraform/main.tf
+++ b/terraform/main.tf
@@ -82,7 +82,9 @@ resource "scaleway_instance_server" "user_instance_server" {
   ip_id             = scaleway_instance_ip.public_ip[count.index].id
   security_group_id = scaleway_instance_security_group.www.id
 
-  cloud-init = file("../instance_scripts/cloud-init.yml")
+  user_data = {
+    cloud-init = file("cloud-init.yml")
+  }
 
   depends_on = [
     scaleway_account_ssh_key.ssh_key,