amazon-elastic-beanstalk

AWS Elastic Beanstalk : the command eb list shows no environments

╄→尐↘猪︶ㄣ 提交于 2020-08-27 21:21:53
问题 I am using Elastic Beanstalk and I have created 3 different environments. I used awsebcli. All of a sudden the command eb list doesn't show me my enviroments because of which I am unable to deploy the environment. The error I am getting is ERROR: This branch does not have a default environment. You must either specify an environment by typing "eb status my-env-name" or set a default environment by typing "eb use my-env-name". I tried eb status 'my-env-name' , again I got an error : ERROR: The

Nginx error “1024 worker_connections are not enough”

纵然是瞬间 提交于 2020-08-26 09:01:50
问题 My website is running in a Docker Image using Nginx with reverse proxy. Site is working prefectly for many hours under heavy traffic, but eventually it stops working and giving no response with 5** time out error. In AWS Elastic Beanstalks Nginx-log I found this error-message: [alert] 18037#0: 1024 worker_connections are not enough I am afraid something is wrong with my custom Nginx-config, but I do not understand what it is. Code from https-redirect-docker-sc.config is attached. I have tried

AWS Elastic Beanstalk: Environment Fails to Launch

不问归期 提交于 2020-08-25 05:17:17
问题 I have created a few environments before so I know how the Amazon EBS works however lately I have been having the following issue while creating an environment: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment has no role. Please attach a role to the instance profile. I follow the steps to create a new environment. When it gets to the Permissions page, I create a new role as there are no existing ones. Then I follow the rest of the steps and eventually it

AWS Elastic Beanstalk: Environment Fails to Launch

时间秒杀一切 提交于 2020-08-25 05:16:18
问题 I have created a few environments before so I know how the Amazon EBS works however lately I have been having the following issue while creating an environment: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment has no role. Please attach a role to the instance profile. I follow the steps to create a new environment. When it gets to the Permissions page, I create a new role as there are no existing ones. Then I follow the rest of the steps and eventually it

AWS Elastic Beanstalk: Environment Fails to Launch

和自甴很熟 提交于 2020-08-25 05:16:12
问题 I have created a few environments before so I know how the Amazon EBS works however lately I have been having the following issue while creating an environment: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment has no role. Please attach a role to the instance profile. I follow the steps to create a new environment. When it gets to the Permissions page, I create a new role as there are no existing ones. Then I follow the rest of the steps and eventually it

How to set up a VPC for Elastic Beanstalk

大憨熊 提交于 2020-08-19 12:12:09
问题 I want to set up a VPC for my Elastic Beanstalk web app and RDS postgres db . I tried creating a VPC but ran into problems: I went to VPC on AWS -> Launch VPC Wizard -> VPC with Public and Private Subnets . I am not sure what configurations to use. For example, what should I set Elastic IP Allocation ID ? Do I need to set the VPC name? After I create this, am I ready to just add it in EBS and RDS, or is there something else I need to do? Thanks! 回答1: Do I need to set the VPC name? Its

How do I get a Command to run from a Dockerfile.aws.json on Elastic Beanstalk?

给你一囗甜甜゛ 提交于 2020-08-08 07:04:51
问题 I have a Dockerfile and a Dockerfile.aws.json : { "AWSEBDockerrunVersion": "1", "Ports": [{ "ContainerPort": "5000", "HostPort": "5000" }], "Volumes": [{ "HostDirectory": "/tmp/download/models", "ContainerDirectory": "/models" }], "Logging": "/var/log/nginx", "Command": "mkdir -p /tmp && axel https://example.com/models.zip -o /tmp/models.zip" } But when I deploy, it doesn't run the Command that I specified. What am I doing wrong? 回答1: If you have ENTRYPOINT in your Dockerfile, than the

Deploying Django to Elastic Beanstalk, migrations failed

狂风中的少年 提交于 2020-08-08 06:05:33
问题 I'm trying to deploy a project I've been working on with django. In development, i've been using SQLite, in production i'm trying to use MySQL. Usually when I create the EB instance, everything runs fine, and the console says the status is OK. Upon trying to deploy (running eb deploy in ebcli), I get met with the following error 2020/06/18 15:59:50.357281 [INFO] Copying file /opt/elasticbeanstalk/config/private/rsyslog.conf to /etc/rsyslog.d/web.conf 2020/06/18 15:59:50.358945 [INFO] Running