ebextensions

Amazon Elastic Beanstalk ebextension

折月煮酒 提交于 2021-01-29 10:52:19
问题 I want to config the nginx config with the ebextension at Amazon Elastic Beanstalk, The content of the conf as below: files: "/etc/nginx/conf.d/custom-nginx-proxy.conf" : mode: "000755" owner: "root" group: "root" content: | client_max_body_size 60M; contatiner_commands: reload_nginx: command: "sudo service nginx reload" but always got the error about the content, nginx: [emerg] unknown directive "files:" in /var/elasticbeanstalk/staging/nginx/conf.d/custom-nginx-proxy.conf:7 I put this file

Laravel on ElasticBeanstalk 'log file permission denied' error keeps coming up even the permission is set in the .ebextensions config file

心不动则不痛 提交于 2020-07-23 04:55:23
问题 I am deploying my Laravel application to the ElasticBeanstalk environment. But I am having issue with laravel.log file permissions. I deployed my application using "eb deploy" command. After I deployed, I access my application. But it is throwing the following error. The stream or file "/var/app/current/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied To solve the issue, I ssh into the server and run the following command. sudo -u root chmod 777 -R /var

Laravel on ElasticBeanstalk 'log file permission denied' error keeps coming up even the permission is set in the .ebextensions config file

依然范特西╮ 提交于 2020-07-23 04:53:22
问题 I am deploying my Laravel application to the ElasticBeanstalk environment. But I am having issue with laravel.log file permissions. I deployed my application using "eb deploy" command. After I deployed, I access my application. But it is throwing the following error. The stream or file "/var/app/current/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied To solve the issue, I ssh into the server and run the following command. sudo -u root chmod 777 -R /var

AWS Elastic Beanstalk: How to use environment variables in ebextensions?

ぐ巨炮叔叔 提交于 2020-01-31 05:19:08
问题 We are trying to store environment specific application configuration files in s3. The files are stored in different subdirectories which are named after the environment and also have the environment as part of the file name. Examples are dev/application-dev.properties stg/application-stg.properties prd/application-prd.properties The Elastic Beanstalk environments are named dev, stg, prd and alternatively I also have an environment variable defined in Elastic Beanstalk named ENVIRONMENT which

How Do I modify NGINX routing on Elastic Beanstalk AWS?

≡放荡痞女 提交于 2020-01-15 06:35:51
问题 So I had a very long post related to deployment of an elixir app to Elastic Beanstalk (here: HTTP 500 Deploying Elixir/Phoenix to AWS Elastic Beanstalk). I've finally boiled the problem to my NGINX being misconfigured to route traffic. It's posting this: 2017/11/18 00:52:45 [error] 2811#0: *15 connect() failed (113: No route to host) while connecting to upstream, client: 172.31.25.36, server: , request: "GET / HTTP/1.1", upstream: "http://172.17.0.2:4000/", host: "172.31.17.239" I've looked

Elastic beanstalk require python 3.5

£可爱£侵袭症+ 提交于 2020-01-01 16:58:12
问题 I recently created a new python program using the latest stable release of python (3.5). Unfortunately, AWS EB does not provide a 3.5 base image. I have been trying to configure .ebextensions to get the image to upgrade the python distro as it's first action. I have not had success. I have tried the following: Packages packages: yum: postgresql93-devel: [] python35: [] Commands container_commands: 01_install_packages: command: 'yum install -y python35 python35-pip' In the case of container

Elastic beanstalk require python 3.5

夙愿已清 提交于 2020-01-01 16:58:10
问题 I recently created a new python program using the latest stable release of python (3.5). Unfortunately, AWS EB does not provide a 3.5 base image. I have been trying to configure .ebextensions to get the image to upgrade the python distro as it's first action. I have not had success. I have tried the following: Packages packages: yum: postgresql93-devel: [] python35: [] Commands container_commands: 01_install_packages: command: 'yum install -y python35 python35-pip' In the case of container

Elastic beanstalk require python 3.5

杀马特。学长 韩版系。学妹 提交于 2020-01-01 16:56:05
问题 I recently created a new python program using the latest stable release of python (3.5). Unfortunately, AWS EB does not provide a 3.5 base image. I have been trying to configure .ebextensions to get the image to upgrade the python distro as it's first action. I have not had success. I have tried the following: Packages packages: yum: postgresql93-devel: [] python35: [] Commands container_commands: 01_install_packages: command: 'yum install -y python35 python35-pip' In the case of container