Cloud-init on custom image

#1

Hello fellow riders,

I want to use cloud-init on my fresh instances.
Here is my test cloud-init config.

#cloud-config
final_message: “Bkr blub blah”
write_files:

  • path: /var/local/bkr.sh
    permissions: ‘0777’
    owner: root:root
    content: |
    #!/bin/bash
    echo “helloe”

This works perfectly well on new instances which are created from standard images (Ubuntu Bionic).
It does not work for my custom images though.
Is there a way to make them work on custom images?
I created my custom image via the backup function int he scaleway frontend.
It’s just a basic Ubuntu image with some additional packages installed.
The cloud-init log files don’t show anything useful.

Kind regards,
Bastian