Home > Enterprise >  All packages installed rolled out after changing ec2 instance
All packages installed rolled out after changing ec2 instance

Time:02-04

We're using AwWS to deploy ou app. We have installed chromimum and epel packages on our instance to male Puppeteer lib work. However for somexreason that instance is terminated and newcinstance assigned to elasticbeanstalk app, apparently without any package installed

How this could be bypassed. Is it best to create some predeploy sh script in ebextensions?

CodePudding user response:

Yes, you can use a pre-deploy shell script in .ebextensions to install the necessary packages, including Chromium and EPEL, every time a new instance is launched. This script can be added to the .ebextensions folder in your application source code, and it will run automatically during deployment. The script should include commands to install the required packages, as well as any necessary dependencies. This will ensure that the necessary packages are installed and available on every instance, regardless of whether the previous instance was terminated.

  • Related