Can I use linode-cli in stackscript to add DNS entries as part of adding a new linode instance
I'm looking at automating the setup of my new linode instance with a stackscript and want to automate the task of adding or altering the instance DNS records for the new instance (or replacement of an existing instance as I'm developing my script). Is it reasonable to install the linode-cli in the instance, or should i only use linode-cli from an outside server (like a build server)?
1 Reply
I don’t see why not. You’d just have to be able to somehow provide your API key automatically within the stack script and pass that to linode-cli.
I’ve just recently used linode-cli from within my Linode to automatically configure DNS records as part of issuing and renewing Lets Encrypt certificates.