Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29543

How to pass the details of an AWS instance to a jenkins job, for the job to ssh and execute in the instance

$
0
0

I am trying to move the execution of automated scripts(Jenkins jobs) in my organization from local server to AWS. I have a Jenkins job to bring up an ec2 instance from the snapshot. The instance which I have brought up consists of 5 user profiles, a total of 5 automation jobs can login to the instance and execute their scripts.

My problem is, the instance I'm bringing up will be terminated once the jobs have been executed(Since we execute those scripts around 3 to 4 times in a month). So each time, I bring up an instance , it will have different IP address, which needs to be passed to the other Jenkins jobs, for the jobs to login into the instance and execute the scripts. My questions is as follows.

How to pass the details of the instance to the jenkins , making the process dynamic? Are there any other ways , by which this problem can be solved(any solution which you might have implemented at your organisation)?


Viewing all articles
Browse latest Browse all 29543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>