I have an issue, I create a beanstalk with nodejs configuration and after it is in running status I ssh to the ec2 created by beanstalk. So my assumtion is that nodejs and npm are already installed in that ec2 but when I run
node --version
npm --version
I get the following errors:
-bash node:: command not found
-bash npm:: command not found
What am I missing here? Does this mean that I need to install node manually?
Yes, You have to setup nodejs.
Check the documentation for how to setup the nodejs environment for beanstalk.
This is a complete guide on how to setup an Express app on elastic beanstalk.
Related
I am using ghostscript on my current server. Now I am moving to an Aws beanstalk server with Application load balancer.
How do I configure start-up script on elastic beanstalk so whenever a new instance is created by the load balancer, ghostscript is automatically installed.
You can control what's installed in ElasticBeanstalk instances with .ebextensions file.
Whenewher Elastic Beanstalk creates a new EC2 instance, it will run all commands from the file in order to provision instance.
Example of .ebextensions file for installing Ghostscript
packages:
yum:
ghostscript: []
This will install a version of ghostscript from yum repository.
If you need a never version of ghostscript - it is also possible to specify installation shell commands inside ebextensions file. For example, these commands will install Ghostscript 9.23
I am very much new to aws. I have created an environment in elastic beanstalk and deployed my application there using zipped code. The application is up and running now. Now i want to stop and start my elastic beanstalk instance from cli in windows. I could not find any stop button in the aws elastic beanstalk console.
I have installed awsebcli using below command:
pip install awsebcli
Now, i want to connect to my existing environment in elastic beanstalk and stop or start the environment at my will.
How can i do that?
The way the EBCLI (awsebcli) works is that you associate an empty directory on your computer with an EB application.
go to an empty directory
eb init --region <region name>. When prompted for the application name, choose the application you created previously.
eb terminate <environment name>. This will terminate the environment.
To create a new environment, perform eb create.
Currently I have setup my yii2 website on AWS Elastic beanstalk. I followed following steps :
Created Elastic Beanstalk app and environment : Platform PHP 7.0, RDS database
Created SSH connection from EC2 instance of elastic beanstalk using putty with .pem file
In Apache folder I have cloned my yii2 git repo using (sudo git clone repo_url) command
Installed composer using this link https://gist.github.com/asugai/6694502
Run command : (sudo composer install) in my repo folder
Edited common/config/main-local.php and made db connection
And run migration using (sudo php yii migrate)
Setup a domain for this elastic beanstalk app
Now I don't know how should I proceed further and I am facing following problems :
Elastic Balance loader is creating new instance and terminating current one when it fails or health goes in severe.
Due this, my all data in that instance is lost. To make it work I am doing all steps again and again manually.
How can I make my domain https (SSL certified)
How can make easy process to pull new changes from git
I already have a working site in nodeJS. which is using elastic beanstalk, elastic balance loader, RDS(postgres), S3 bucket, cloudfront for Route 53, SSL certificate (https), code pipeline, code commit. And AWSCLI at local to deploy nodeJS app.
my question is about I want to use same flow for yii2 advance app.
Can anyone please help me here?
Thanks in advance :)
I have deployed my war file on AWS ElasticBeanstalk (setup with glassfish4.1 java 1.8). I want to open glassfish admin UI in browser.
Thanks in advance!
I am not sure its possible to access the glassfish console UI (at least I never went to this point so far, but might be possible using docker forward port ...)
what I do is the following:
SSH into the ec2 instance elastic beanstalk has provisioned
run sudo docker ps -a to find out about the container running on the instance
ssh into the container sudo docker exec -it <container id here> bash
this will log you on the container running glassfish, from there you can run the asadmin command
I'm trying to configure an ALB for my elb deployment.
I've followed the aws tutorial
but when I'm running eb create test-env --elb-type application
I get: eb: error: unrecognized arguments: --elb-type application
I've updated my eb cli using aws tutorial
(running EB CLI 3.7.6 (Python 2.7.1))
Many Thanks
It looks like you are using an older version of the EB CLI. The support for Application Load Balancers was added in 3.7.8: https://pypi.python.org/pypi/awsebcli
You can upgrade your CLI version by running:
pip install --upgrade awsebcli