amazon-elastic-beanstalk

AWS EB: Unresolved resource dependencies

戏子无情 提交于 2020-07-03 17:31:13
问题 My Django app is deployed and working thanks to this fantastic article: https://medium.com/@justaboutcloud/how-to-deploy-a-django3-application-on-elastic-beanstalk-python3-7-and-amazon-linux-2-bd9b8447b55 I'm to the end of the project and am setting up HTTPS. To do that, I've created a config file in my .ebextensions folder called 02_https.config In this file, I copy and pasted the code from the article: option_settings: aws:elbv2:listener:443: SSLCertificateArns: <YourACMCertificateARN>

'AnonymousUser' object has no attribute 'is_admin'

ε祈祈猫儿з 提交于 2020-07-03 13:00:22
问题 I am using Django 2.2 and Python 3.6. I deployed a Django REST server using AWS EB, but I get the following error. It works fine on the local side, but an error occurs in the EB instance. As a result of my analysis, request.user is recognized normally on the local, but on the EB it is marked as an anonymous user. I am using the same code, but why does this happen? REST_FRAMEWORK = { "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination", "PAGE_SIZE": 10, "DEFAULT

Sequelize migrations error while running in Elastic Beanstalk

孤街浪徒 提交于 2020-06-29 06:38:25
问题 I'm trying to get Sequelize migrations to run on each deploy to Elastic Beanstalk. I'm following the advice of the documentation, of other answers on Stack Overflow, and even a different project I've worked on in the past, and am using a .config file in my /.ebextensions folder: container_commands: 00_node_binary: command: "ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin/node /bin/node" 01_npm_binary: command: "ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-* |

mysqlclient installation error in AWS Elastic Beanstalk

让人想犯罪 __ 提交于 2020-06-29 05:34:09
问题 I am deploying a django with mysql app on AWS Elastic Beanstalk, so mysqlclient library is needed. mysqlclient needs python3-devel and mysql-devel package to be installed, so I have the custom config file for it 01_packages.config : packages: yum: python3-devel: [] mysql-devel: [] Deployment fails and the log file /var/log/cfn-init.log (mentioned in Beanstalk logs) shows the error: 2020-05-31 02:17:37,565 [INFO] -----------------------Starting build----------------------- 2020-05-31 02:17:37

Windows Authentication Not working in Elastic Beanstalk

核能气质少年 提交于 2020-06-28 07:20:32
问题 I have an ASP .net web application that uses windows authentication. The page displays logged in persons user name (Controller.User.Identity.Name), and has <authentication mode="Windows" /> in web.config. The page works fine in the current server, and my local machine. But when i deployed it to beanstalk server the page doesn't prompt for credentials. Below are the steps i have done so far. I figured out that i have to enable windows authentication in the EBS IIS server. Added a AWS Elastic

Windows Authentication Not working in Elastic Beanstalk

好久不见. 提交于 2020-06-28 07:19:11
问题 I have an ASP .net web application that uses windows authentication. The page displays logged in persons user name (Controller.User.Identity.Name), and has <authentication mode="Windows" /> in web.config. The page works fine in the current server, and my local machine. But when i deployed it to beanstalk server the page doesn't prompt for credentials. Below are the steps i have done so far. I figured out that i have to enable windows authentication in the EBS IIS server. Added a AWS Elastic

AWS Elastic Beanstalk - Environment must have instance profile associated with it

坚强是说给别人听的谎言 提交于 2020-06-27 11:59:10
问题 I am working on a project that will programmatically create environments in AWS elastic beanstalk. I am using the AWS SDK for PHP Version 3. My script creates the environment. From the AWS console, the environment is displayed in gray and says that it is terminated. Viewing the events shows that an error of "Environment must have instance profile associated with it". I have tried using the access key and secret of two different users. One user has AmazonEC2FullAccess, IAMFullAccess, and

AWS Elastic Beanstalk environment with multiple Load Balancers

只愿长相守 提交于 2020-06-24 08:22:30
问题 I have the following situation: I have 1 Rails App that has 2 domains, each of these domains has multiple/dynamical subdomains. This app is in AWS using a load-balanced Elastic Beanstalk. What i need is that those 2 domains that points to my single Rails App to work under SSL in port 443. But since Elastic Beanstalk has only one load balancer, I can only use one single SSL certificate on port 433 :( Using a UCC SSL certificate won't be the solution because i need each domain certificate to be

AWS Elastic Beanstalk Docker Does not support Multi-Stage Build

六月ゝ 毕业季﹏ 提交于 2020-06-21 09:47:08
问题 I am struggling to get my build deploying to AWS on Docker. I have no idea where the solution lays as this is my first time with Docker. I have got it all working fine locally, but when I deploy I get the following error in Elastic Beanstalk: 2020/04/30 05:35:02.330900 [ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: failed to pull docker image: Command /bin/sh -c docker pull node:13.3.0 AS compile-image

ModuleNotFoundError: No module named 'django

白昼怎懂夜的黑 提交于 2020-06-17 05:34:50
问题 I have built a site in virtual env using django and have followed the steps from AWS document for deploying the site. I have deployed my site to AWS web server using Elastic Beanstalk and have setup a python environment running 3.6 and django 2.1.1. I have pulled the logs and am getting the following error: Traceback (most recent call last): File "/opt/python/current/app/weddingProject/wsgi.py", line 12, in <module> from django.core.wsgi import get_wsgi_application ModuleNotFoundError: No