How Can I Reboot Elastic Beanstalk Instances in an ebextensions script

0 votes

I need to run an rpm command, then yum update, then reboot the instance for changes to take affect.

My ebextensions script works if I remove the 03reboot command. When I add it in, it fails and I get the event errors:

Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001]
Unsuccessful command execution on instance id(s) '<id>'. Aborting the operation.

commands:
    03reboot:
        command: shutdown -r now

Is there a preferred way to issue a reboot in the ebextensions config?

Sep 10, 2018 in AWS by bug_seeker
• 15,520 points
4,615 views

1 answer to this question.

0 votes

The answer is you don't. The recommendation from AWS support is to use a custom AMI that you pre-configure and use for instance replacement going forward.

answered Sep 10, 2018 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

Using reserved instances in an Elastic Beanstalk Load Balancer

A Reserved Instance a method of pre-paying ...READ MORE

answered Aug 2, 2018 in AWS by bug_seeker
• 15,520 points
999 views
0 votes
1 answer

How can I get current date in a CloudFormation script?

There was a similar question asked on ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 58,020 points
8,840 views
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,225 views
+1 vote
2 answers

Using reserved instances in an Elastic Beanstalk Load Balancer

A Reserved Instance a method of pre-paying ...READ MORE

answered Aug 1, 2018 in AWS by Priyaj
• 58,020 points
836 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP