Ssh deployment automation

I am trying to do package transfer by adding ssh connection to aws ec2 instance through automation script. Anyone has done it before using terraform/unix script. I have done it by manually adding deployment target but I want to do it through automation, please advise.

Hi @pra89j!

This is certainly possible - you could do an API call to register the deployment target, and then use a project trigger to automatically kick off a deployment to that machine once it’s registered.

Here’s an example shell script for registering a new SSH target: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/bash/Targets/RegisterSSHEndpoint.sh

Happy deployments!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.