/srv/irclogs.ubuntu.com/2022/07/17/#cloud-init.txt

emper0rhi. i did a simple script to run cli53 tool to record my ip address instance into aws route53 , if i run manually script works. but using cloud-init with runcmd: - /usr/local/bin/route53_script.sh not work. what i'm missing?07:10
holmanbemper0r: What do you expect to happen? It's hard to suggest anything without more detail.07:19
emper0rjust execute the script07:19
emper0ri add a simple log when run to verify if was execute but is like ignore07:19
emper0ri tried in many way 07:19
emper0r- /usr/local/bin/script.sh   - script.sh    - sudo script.sh    - sudo /usr/local/bin/script. 07:20
emper0rnothing07:20
holmanbAre you expecting this to run every boot?07:20
emper0ryes07:20
emper0roh including this [ 'sh', '-c', 'script' ]07:20
emper0ris to autoregistrate ip addres in my private zone. 07:21
emper0rso have cli53 tool on AMI to when boot ec2 isntance auto register07:22
holmanbhttps://cloudinit.readthedocs.io/en/latest/topics/modules.html#runcmd07:22
holmanbruncmd does not run every boot07:22
holmanbSee the module frequency value07:24
emper0rhmmm.. i see07:27
emper0ri'll try bootcmd 07:29
emper0ris possible run cloud init in the same ec2 to "simulate" and see if run with the parameters set ?07:31
emper0rbootcmd: not work :S is frustrating07:35
emper0rok thx anyway... 07:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!