For people who had a problem with having a 502 Bad Gateway & static files not serving. Here's what I did to solve this. 1. 502 Bad Gateway > Do a "pip install gunicorn" > Then freeze it to your requirements.txt with "pip freeze > requirements.txt". > eb deploy > eb open (to open your elastic beanstalk django application) 2. Static Files not serving > Add this to your django.config file (Do mind the spacing for this one) aws:elasticbeanstalk:environment:proxy:staticfiles: /static: static > eb deploy > eb open (to open your elastic beanstalk django application) For some weird reason this and other tutorials somehow got it to work without doing that but this right here sorted out the error I got with 502 Bad Gateway and static files serving. Might have to do with the AWS documentation for Django being outdated?
i still have issue after installing gunicorn ,,, 2023-01-27 16:44:20 INFO Environment update is starting. 2023-01-27 16:44:24 INFO Deploying new version to instance(s). 2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'. 2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed. 2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. 2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation. 2023-01-27 16:44:30 ERROR Failed to deploy application. ERROR: ServiceError - Failed to deploy application.
Actually it's not weird, there are some configuration differences between AL1 and AL2. I think in video they are using AL1 and you are using AL2. Let me know if I'm wrong.
Excellent content friend. Greetings from Venezuela. One question: I have seen that they advise decoupling the app in several services, example: s3, cache, another for databases ... in order to save on costs and have better optimization. What aws service would be used for a postgressql database, how could I configure it? Or with Elastic Beanstalk we handle the characteristics of the aws services that i mention?
I just dont get how did u connect your AWS account with the project, i even paste security keys that i created, with the command 'eb init', but i still got nothing in the Environments/Applications list.
Hey I am having troubles with the license_file parameter saying it is deprecated. The documentaion online is quite complicated and I am unsure how to proceed.
When I execute the command eb create [name] i get the following error ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
Thank you worked like a charm, however WSGI PATH needs to be re-configured all over again it points to application.py by default. Great content Brother.
@@mrpaxo297 About WSGI path, check the documentation on AWS there is a point mentioning how the path should be in correspondence to the os will be installed to your ec2 instance. If you have to make changes you can start by editing the file and also run command eb config search for WSGI path edit the same as well
OMG!!!! This really helpful for me. Type eb config, then search where WSGIPath is then change the application to project_name.wsgi:application then no more 502!
in my mac I have python2 and python3 and when I run ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer i got python2 runing . so how to specify python3
Hey Benjamin, thanks for the wonderful tutorial. I have a question though. Does the name of virtual environment has to be 'eb-virt' and no other name? Cuz I noticed that when you create the virtual env as 'eb-virt' you get this new directory with the same name, but nothing when you use some other name for the virtual env. Does it only have to be 'eb-virt'?
And if this is the answer is yes, since I've already built my entire project in a virtual env with different name, would there be a problem? I'm a newbie by the way and working on the prototype of my product. :)
@@BenjaminCarlson Thanks for the reply. I actually ran into an error when creating the environment. I checked the log, and I found this error : "Error occurred during build: Command 01_migrate failed." Do you have any idea what might be the problem? Thanks. :)
How to enable/use the autoscale features of AWS? Is there a way to have 1 autoscaling DB @ AWS combined with autoscaling AWS BE stuff to have a distributed running website?
When I type in init -p python-3.6 Portfolio-Deploy to my cmd it opens another terminal that says I need to sign in using my id and secret access key is there any documentation I can read to figure out how to get these things?
ModuleNotFoundError: No module named 'colorama' i get this message when i type ".\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer" and i ran pip install colorama
if i update my SECRET_KEY to SECRET_KEY = os.environment["SECRET_KEY"], How do you customize / input the SECRET_KEY = 'value' in the settingspy in deploying in AWS. Thank you
when I run eb init -p python-3.6 django-tutorial, it says -You have not yet set up your credentials or your credentials are incorrect You must provide your credentials
@@deepjyotide181 I went to "Your Security Credentials" under the account, and generated a key and password in the Access keys (access key ID and secret access key) section
@@deepjyotide181 go into your AWS console -> click on your account on the top right -> security credentials -> in the new page there is an option 'access keys'
i keep getting internal server error when i deploy it This is the error when i inspect the page: Failed to load resource: the server responded with a status of 500 (Internal Server Error) Any ideas how to fix? i have followed this video and documentation
ERROR Instance deployment failed. For details, see 'eb-engine.log'. 2021-04-15 12:34:14 ERROR Instance deployment failed to install application dependencies. The deployment failed. 2021-04-15 12:34:18 ERROR [Instance: i-01f424c522199fd75] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. I'm getting this error while creating an environment ... any guess why
Trying to do this with my current project but getting a 500 error. I'm working through it but this guide definitely pointed me in the right direction. Appreciate the video, thank you!
@@jpchato I actually solved it in the end. I looked through my logs and i had an error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pr0s0bsp/cryptography/ So i used this solution stackoverflow.com/a/42477724 to update pip to the last version on EB side. name the file 01_upgrade_pip.config though so it comes before django.config This might only be applicable to my error but maybe it could be useful
Dude I still see no styling, i've gone through this video at least 10 times now. I'm using python 3.8 with django 2.2 In the django.config file I had to go with WSGIPath: ebdjango.wsgi:application otherwise I would be served with a 502 Bad gateway. Any ideas why I'm still seeing no styling?
In your ~/ebdjango/.ebextensions folder, create a file called static-files.config and populate it with the following code. option_settings: aws:elasticbeanstalk:environment:proxy:staticfiles: /static: static
I am facing this error ERROR: NotAuthorizedError - Operation Denied. User: arn:aws:iam::XXXXX:user/YYYY is not authorized to perform: elasticbeanstalk:CreateApplication on resource: arn:aws:elasticbeanstalk:us-west-2:ZZZZZ:application/django-tutorial Can anyone help me with this?
@@BenjaminCarlson I solved that issue.. But now when I run "eb open" my browser shows a 502 bad waterway and my application does not get created in my AWS console...... Any Idea why this is happening?
Hello! Very good tutorial! When I execute eb init -p python-3.6 django-tutorial and eb create django-env, the enviroment and tthe instances doesn´t appear to me. Do you know what is happening? Thank you so much! And sorry for my bad English :)
It's because you are in a different region on the website. In the tutoriel the region is "us-west-2". Make sure that you are in the same region on the AWS website
whenever i try to "eb init -p python-3.9 django-tutorial"... I get an error saying "Operation denied, user is not authorized to perform elasticbeanstalk:CreateApplication........" yada yada yada. Anyone know of a good way to fix this? Ive messed around with permissions to no avail. Anyone have an idea?
in your path project , paste this "echo 'export PATH="/home/[HERE UR PERSONAL FOLDER]/.ebcli-virtual-env/executables:$PATH"' >> ~/.bash_profile && source ~/.bash_profile" , then eb init etc....
I solved this error by using pip : pip install awsebcli --upgrade --user and then add this to path in environment path : %USERPROFILE%\AppData oaming\Python\Python37\scripts this might be changed depending on your file location see this link for more : docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-windows.html
can u please help error is: C:\Users\user\sclouds : The term 'C:\Users\user\sclouds' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + C:\Users\user\sclouds - Copy\aws-elastic-beanstalk-cli-setup\scripts\ ... + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\Users\user\sclouds:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
It looks like you are having trouble with the eb cli (elastic beanstalk command line interface). I don't think it was installed correctly. I suggest looking up your error on stack overflow to see if anyone has encountered it and what the fix is. You could also go to the aws documentation (link in description) where it points to what you should do if you have an error installing.
i cant upload my website if you can look at the log any update on it >>>>2023-01-27 16:44:20 INFO Environment update is starting. 2023-01-27 16:44:24 INFO Deploying new version to instance(s). 2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'. 2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed. 2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. 2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation. 2023-01-27 16:44:30 ERROR Failed to deploy application. ERROR: ServiceError - Failed to deploy application.
Hi ,, I tried to uplaod but it give me this error please help me .....>>> 2023-01-27 16:44:20 INFO Environment update is starting. 2023-01-27 16:44:24 INFO Deploying new version to instance(s). 2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'. 2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed. 2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. 2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation. 2023-01-27 16:44:30 ERROR Failed to deploy application. ERROR: ServiceError - Failed to deploy application.
HOW! I've been trying every tut in the book, This is the only one that worked
-BLESS
For people who had a problem with having a 502 Bad Gateway & static files not serving. Here's what I did to solve this.
1. 502 Bad Gateway
> Do a "pip install gunicorn"
> Then freeze it to your requirements.txt with "pip freeze > requirements.txt".
> eb deploy
> eb open (to open your elastic beanstalk django application)
2. Static Files not serving
> Add this to your django.config file (Do mind the spacing for this one)
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: static
> eb deploy
> eb open (to open your elastic beanstalk django application)
For some weird reason this and other tutorials somehow got it to work without doing that but this right here sorted out the error I got with 502 Bad Gateway and static files serving. Might have to do with the AWS documentation for Django being outdated?
i still have issue after installing gunicorn ,,,
2023-01-27 16:44:20 INFO Environment update is starting.
2023-01-27 16:44:24 INFO Deploying new version to instance(s).
2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'.
2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed.
2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation.
2023-01-27 16:44:30 ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
Actually it's not weird, there are some configuration differences between AL1 and AL2. I think in video they are using AL1 and you are using AL2. Let me know if I'm wrong.
@@mayarmd2581 Did you ever get this to work???
Thank you for step-by-step walkthrough.
thank you, very clear walkthrough.
Great video Benjamin. THanks!
Hi, I followed all the steps, but the style of the admin page still does not show. Any suggestions? thx
Excellent content friend. Greetings from Venezuela. One question: I have seen that they advise decoupling the app in several services, example: s3, cache, another for databases ... in order to save on costs and have better optimization. What aws service would be used for a postgressql database, how could I configure it? Or with Elastic Beanstalk we handle the characteristics of the aws services that i mention?
hey, i have an error "ModuleNotFoundError: No module named 'virtualenv'"
when run command: .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer
@7:08 I don't see you executing any authentication on the terminal linking ur project to ur account on aws management console.
Hey Ben, it's me again 🙂! Do you also know whether AWS supports MySQL 8?
I am getting a 502 error Bad gateaway nginx/1.18.0,
And i am failing to get a healthy environment. Can anyone help me?
I just dont get how did u connect your AWS account with the project, i even paste security keys that i created, with the command 'eb init', but i still got nothing in the Environments/Applications list.
Hey I am having troubles with the license_file parameter saying it is deprecated. The documentaion online is quite complicated and I am unsure how to proceed.
When I execute the command eb create [name] i get the following error
ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
Thank you worked like a charm, however WSGI PATH needs to be re-configured all over again it points to application.py by default. Great content Brother.
Could you please explain this? I'm just stuck on this, I'm looking at stackoverflow, but I just get more confused
@@mrpaxo297 About WSGI path, check the documentation on AWS there is a point mentioning how the path should be in correspondence to the os will be installed to your ec2 instance. If you have to make changes you can start by editing the file and also run command eb config search for WSGI path edit the same as well
I think u meant application has to be deployed twice, atleast i did that. 1st-time elastic beanstalk gave wsgi error, but 2nd time it was successful.
OMG!!!! This really helpful for me. Type eb config, then search where WSGIPath is then change the application to project_name.wsgi:application then no more 502!
Legend. Subscribed
You helped ...thank you!
you are my life saver
Superb Tutorial
Very cool tutorial! wholesome 100/100
thaks for ypur video it's working for me tq for your good
explanation
thank you brother keep going
Thank you Bro.
:)
Great video! Thanks
Great video
Thank you so much.
in my mac I have python2 and python3 and when I run ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer i got python2 runing . so how to specify python3
Hey Benjamin, thanks for the wonderful tutorial. I have a question though. Does the name of virtual environment has to be 'eb-virt' and no other name? Cuz I noticed that when you create the virtual env as 'eb-virt' you get this new directory with the same name, but nothing when you use some other name for the virtual env. Does it only have to be 'eb-virt'?
And if this is the answer is yes, since I've already built my entire project in a virtual env with different name, would there be a problem? I'm a newbie by the way and working on the prototype of my product. :)
Nope, the name can be whatever you want. And good luck on your project!
@@BenjaminCarlson Thanks for the reply. I actually ran into an error when creating the environment. I checked the log, and I found this error : "Error occurred during build: Command 01_migrate failed." Do you have any idea what might be the problem? Thanks. :)
Thanks a lot by far the best explanation I have found, how can I get this done but using docker-compose?
Hey! Thanks for the tutorial, but what happen if in my proyect i have redis server and websockets nothing change?
Unfortunately I am not sure how to handle that but if you do a quick search on stack overflow you should find some solutions!
@Bernardo bro I need your help to deploy my channels app
@@maahad767 yes i can help u
How to enable/use the autoscale features of AWS? Is there a way to have 1 autoscaling DB @ AWS combined with autoscaling AWS BE stuff to have a distributed running website?
Any idea why uploading a blank django app like you did would produce a bad gateway 502 error?
this was very helpful, but is it possible to use a custom domain name in AWS EB?
yes, you can! I believe the docs has a page dedicated to it.
I’m getting NotAuthorizedError on eb create. How to resolve it?
Legend
When I type in init -p python-3.6 Portfolio-Deploy to my cmd it opens another terminal that says I need to sign in using my id and secret access key is there any documentation I can read to figure out how to get these things?
Did you figured it out ? Same with me
ModuleNotFoundError: No module named 'colorama'
i get this message when i type ".\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer" and i ran pip install colorama
Sorry, maybe I missed something. But how can I get credentials: aws-access-id?
go into your AWS console -> click on your account on the top right -> security credentials -> in the new page there is an option 'access keys'
if i update my SECRET_KEY to SECRET_KEY = os.environment["SECRET_KEY"], How do you customize / input the SECRET_KEY = 'value' in the settingspy
in deploying in AWS. Thank you
Hi, how can I host my website on a custom url like www.something.com instead of that long one given to us by default?
route53
is this configuration can be considered for production use already? or do I still need to change the webserver to apache/nginx?
You will need to make some changes for production to make it more secure but you don't need a webserver.
when I run eb init -p python-3.6 django-tutorial, it says -You have not yet set up your credentials or your credentials are incorrect
You must provide your credentials
have got the solution to it?
@@deepjyotide181 I went to "Your Security Credentials" under the account, and generated a key and password in the Access keys (access key ID and secret access key) section
@@deepjyotide181 go into your AWS console -> click on your account on the top right -> security credentials -> in the new page there is an option 'access keys'
Thanks for a great tutorial. How would I go about attaching a custom domain to my deployed app?
can you help me how to install MySQL dependencies on beanstalk
i keep getting internal server error when i deploy it
This is the error when i inspect the page:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Any ideas how to fix? i have followed this video and documentation
ERROR Instance deployment failed. For details, see 'eb-engine.log'.
2021-04-15 12:34:14 ERROR Instance deployment failed to install application dependencies. The deployment failed.
2021-04-15 12:34:18 ERROR [Instance: i-01f424c522199fd75] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
I'm getting this error while creating an environment ... any guess why
Did you ever solve this????
Trying to do this with my current project but getting a 500 error. I'm working through it but this guide definitely pointed me in the right direction. Appreciate the video, thank you!
Did you solve this Jesse, i am getting a 500 error also
@@patrickcoakley8564 I did not. I ended up using heroku to deploy my application
@@jpchato I actually solved it in the end. I looked through my logs and i had an error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pr0s0bsp/cryptography/
So i used this solution stackoverflow.com/a/42477724
to update pip to the last version on EB side.
name the file 01_upgrade_pip.config though so it comes before django.config
This might only be applicable to my error but maybe it could be useful
@@patrickcoakley8564 I did
amazing guy! congrats ! how many times to do so easy like that ? :)
Elastic Beanstalk > All environments does not see my project why would this be?
Dude I still see no styling, i've gone through this video at least 10 times now. I'm using python 3.8 with django 2.2
In the django.config file I had to go with WSGIPath: ebdjango.wsgi:application otherwise I would be served with a 502 Bad gateway.
Any ideas why I'm still seeing no styling?
In your ~/ebdjango/.ebextensions folder, create a file called static-files.config and populate it with the following code.
option_settings:
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: static
then deploy. It should be fine now
I am facing this error
ERROR: NotAuthorizedError - Operation Denied. User: arn:aws:iam::XXXXX:user/YYYY is not authorized to perform: elasticbeanstalk:CreateApplication on resource: arn:aws:elasticbeanstalk:us-west-2:ZZZZZ:application/django-tutorial
Can anyone help me with this?
At 9:15 when I logged into aws the app didn't show up
anybody having issues with static files in production? using Django 4.2.3, hope there is advise
Hey, is elastic beanstalk compatible with Django 3.0 and above?
I believe so but you need to make sure the Python version is compatible with EB
BUILD FAILED (Ubuntu 16.04 using python-build 20180424) getting this error. Do you have any advice?
Was there any more output for the error? That line alone could mean a bunch of things.
@@BenjaminCarlson I solved that issue.. But now when I run "eb open" my browser shows a 502 bad waterway and my application does not get created in my AWS console...... Any Idea why this is happening?
thanks a lot
Hello! Very good tutorial! When I execute eb init -p python-3.6 django-tutorial and eb create django-env, the enviroment and tthe instances doesn´t appear to me. Do you know what is happening? Thank you so much! And sorry for my bad English :)
I have the same issue.
It's because you are in a different region on the website. In the tutoriel the region is "us-west-2". Make sure that you are in the same region on the AWS website
whenever i try to "eb init -p python-3.9 django-tutorial"...
I get an error saying "Operation denied, user is not authorized to perform elasticbeanstalk:CreateApplication........" yada yada yada. Anyone know of a good way to fix this? Ive messed around with permissions to no avail. Anyone have an idea?
I think python3.9 is not supported by eb. The latest python version supported is 3.8
Is it necessary to have python 3.6? I have python 3.8 installed.
I believe any version of python 3 will work but you can check the Google docs to verify
How to install eb cli?
bro
.\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer
while using this command m getting a error
You have to say the error you get if you need help.
I have this error: 'eb' is not recognized as an internal or external command,
operable program or batch file. When I ran : eb init -p python-3.6
Your elastic beanstalk command line interface (eb cli) can't be found. Most likely it was not installed correctly
in your path project , paste this "echo 'export PATH="/home/[HERE UR PERSONAL FOLDER]/.ebcli-virtual-env/executables:$PATH"' >> ~/.bash_profile && source ~/.bash_profile" , then eb init etc....
I solved this error by using pip :
pip install awsebcli --upgrade --user
and then add this to path in environment path :
%USERPROFILE%\AppData
oaming\Python\Python37\scripts
this might be changed depending on your file location
see this link for more :
docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-windows.html
Great content. Do you know what I have to do if my django project uses postgresql as database?
can u please help
error is:
C:\Users\user\sclouds : The term 'C:\Users\user\sclouds' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ C:\Users\user\sclouds - Copy\aws-elastic-beanstalk-cli-setup\scripts\ ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\user\sclouds:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Exiting due to failure
It looks like you are having trouble with the eb cli (elastic beanstalk command line interface). I don't think it was installed correctly. I suggest looking up your error on stack overflow to see if anyone has encountered it and what the fix is. You could also go to the aws documentation (link in description) where it points to what you should do if you have an error installing.
I'm having an issue with getting the access id and secret key. Can anyone help?
o into your AWS console -> click on your account on the top right -> security credentials -> in the new page there is an option 'access keys'
More of the same please.
i cant upload my website if you can look at the log any update on it >>>>2023-01-27 16:44:20 INFO Environment update is starting.
2023-01-27 16:44:24 INFO Deploying new version to instance(s).
2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'.
2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed.
2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation.
2023-01-27 16:44:30 ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
Did you figure out a solution?
Hi ,, I tried to uplaod but it give me this error please help me .....>>>
2023-01-27 16:44:20 INFO Environment update is starting.
2023-01-27 16:44:24 INFO Deploying new version to instance(s).
2023-01-27 16:44:28 ERROR Instance deployment failed. For details, see 'eb-engine.log'.
2023-01-27 16:44:28 ERROR Instance deployment failed to install application dependencies. The deployment failed.
2023-01-27 16:44:30 ERROR [Instance: i-004f08a2557684df8] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
2023-01-27 16:44:30 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2023-01-27 16:44:30 ERROR Unsuccessful command execution on instance id(s) 'i-004f08a2557684df8'. Aborting the operation.
2023-01-27 16:44:30 ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
even after adding cname to allowed hosts while doing eb open, its getting 502 bad gateway error, can you explain why that happens?
Thank you for this great content
Glad you enjoy it!