Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to add a step in pipeline to restart an EC2 instance before deployment

grk684 March 14, 2020

I would like to have an option to restart the EC2 instance on which the deployment is going to happen

1 answer

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 13, 2020

@grk684 you have this option in aws cli https://docs.aws.amazon.com/cli/latest/reference/ec2/reboot-instances.html , you can execute it as bash line just before your deploy command and then wait for some time (depending on your instance how long it takes to start)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events