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,350 points
442 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
• 56,540 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,350 points
83 views
0 votes
1 answer

How can I get current date in a CloudFormation script?

The advice by @Guy is correct, you ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 56,540 points
907 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,090 points
46 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
• 56,540 points
36 views