Retrive or Restore Elastic Beanstalk Config File - amazon-web-services

How do I retrieve/restore my Elastic Beanstalk config file?
My hard-drive failed and I lost my Elastic Beanstalk config yaml file. I've looked around the eb CLI to no avail.

If you would like to know your environment variables its under
Your EB Environment -> Configuration -> Software

Related

Elastic Beanstalk not creating ssl.conf

I am following the these instructions for enabling HTTPS on the EC2 instance managed by Elastic Beanstalk. I can see that Elastic Beanstalk creates the /etc/pki/tls/certs/server.crt & /etc/pki/tls/certs/server.key files. However, Elastic Beanstalk is not creating the /etc/httpd/conf.d/ssl.conf file. Manually creating the /etc/httpd/conf.d/ssl.conf file, post environment creation, does enable HTTPS though. I am using Apache server.
P.S. I had to change line 3 to mod_ssl : [] (original was mod24_ssl : [])
You are following instruction for EB platform based on Amazon Linux 1 (AL1). However, it seems that you are using platform based on AL2, where proxy (httpd or nginx) are setup differently then on AL1. Specifically, they should be in .plaftorm folder, not .ebextentions. From docs:
Configuration file location – You should place proxy configuration files in the .platform/nginx and .platform/httpd directories on all Amazon Linux 2 platform versions.
Further details how to setup httpd on AL2 platforms are in Configuring Apache HTTPD.

Environment properties not working in AWS Elastic Beanstalk

I am deploying a NodeJS app with Docker and Travis CI into AWS Elastic Beanstalk. My NodeJS app is dependent on MONGO_URI which I wish to pass as an environment variable. I tried adding it via the environmental properties but it doesn't seems to work.

How to connect to existing elastic beanstalk instance locally from cli?

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.

How can I get the RDS host of an elastic beanstalk environment?

How can I get the RDS host of an elastic beanstalk environment? I setup an EB env with:
eb create --database ...
Now I want to upload a SQL dump to this new environment without connecting to any server of this EB environment. Since the information is in the environment variables, I thought I could find out it with eb printenv but that does not work.
the information exists in the beanstalk web console (Data Tier section on the environment's Configuration page) as described in this document

Access deployed file on AWS elastic beanstalk

I have deployed my app using aws elastic beanstalk and want to access those file on the instance. Is there anyway to do that ? I am able to login to my instance.
I used find command to trace the file location but could not find it.
If yes, what is the path where all deployed class files will be present ?