amazon-elastic-beanstalk

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

terraform aws_elastic_beanstalk_environment SSL PolicyNames

房东的猫 提交于 2020-07-20 11:12:05
问题 Using terraform, does anyone know how to set a predefined SSL Security Policy for an ELB, from within the aws_elastic_beanstalk_environment resource? I've tried various permutations of parameters, branching out from something like the below, but have had no luck. ``` setting { name = "PolicyNames" namespace = "aws:elb:listener" value = "ELBSecurityPolicy-TLS-1-2-2017-01" } ``` Can this be done using the setting syntax? regards Michael 回答1: Following works for classic ELB, LoadBalancerPorts is

aws beanstalk 403 error while deploying

若如初见. 提交于 2020-07-20 07:53:30
问题 Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says Forbidden You don't have permission to access / on this server. My server specs: 64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.4 What would be causing this? Thanks 回答1: Credit to Rakesh Bollampally: I think your application is inside a folder. If that is the case, change the EBS configuration for document root or have a file in

aws beanstalk 403 error while deploying

二次信任 提交于 2020-07-20 07:52:50
问题 Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says Forbidden You don't have permission to access / on this server. My server specs: 64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.4 What would be causing this? Thanks 回答1: Credit to Rakesh Bollampally: I think your application is inside a folder. If that is the case, change the EBS configuration for document root or have a file in

Why Can't My AWS instance install node-sass pacakage?

独自空忆成欢 提交于 2020-07-18 04:59:33
问题 I made an app using Node and am trying to host it using AWS's Elastic Beanstalk, but it always fails npm install when it reaches node-sass. Here is the error from the logs: 5162 error node-sass@4.5.0 postinstall: node scripts/build.js 5162 error Exit status 1 5163 error Failed at the node-sass@4.5.0 postinstall script 'node scripts/build.js'. 5163 error Make sure you have the latest version of node.js and npm installed. 5163 error If you do, this is most likely a problem with the node-sass

Can I update Amazon's old versions of pip and setuptools?

你离开我真会死。 提交于 2020-07-17 05:39:32
问题 Can I update or remove the pip and setuptools provided with AWS Elastic Beanstalk? The versions of pip and setuptools provided with my AWS Elastic Beanstalk Python environments (in the 2.7 virtual environment running my application, ami-d14608e1 ; in /opt/python/run/venv/lib/python2.7/site-packages ) are very old: as reported by pip list --outdated they are setuptools (Current: 2.2 Latest: 12.0.5) pip (Current: 1.5.4 Latest: 6.0.7) Can I update these (e.g. by listing them in my requirements

Can I update Amazon's old versions of pip and setuptools?

不羁的心 提交于 2020-07-17 05:39:15
问题 Can I update or remove the pip and setuptools provided with AWS Elastic Beanstalk? The versions of pip and setuptools provided with my AWS Elastic Beanstalk Python environments (in the 2.7 virtual environment running my application, ami-d14608e1 ; in /opt/python/run/venv/lib/python2.7/site-packages ) are very old: as reported by pip list --outdated they are setuptools (Current: 2.2 Latest: 12.0.5) pip (Current: 1.5.4 Latest: 6.0.7) Can I update these (e.g. by listing them in my requirements

Deploy flask-socketio on beanstalk

最后都变了- 提交于 2020-07-10 07:15:28
问题 I can't quite get Flask-SocketIO working with my instance on AWS Elastic Beanstalk (ELB), with the requirement of running Flask-SocketIO with socketio.run(application), ELB appears to make the calls to the global application object itself. The ELB documentation states Using application.py as the filename and providing a callable application object (the Flask object, in this case) allows Elastic Beanstalk to easily find your application's code. My ELB instance logs show the error RuntimeError:

AWS Elastic Beanstalk won't deploy my Rails app even once

佐手、 提交于 2020-07-09 05:26:23
问题 I'm currently using the "Ruby 2.6 running on 64bit Amazon Linux 2/3.0.2" image, and by looking, inside the EC2 instance at the /var/logs/eb-engine.log ("eb logs" command won't show me this), there is a recurring error: [ERROR] failed to parse JSON file /opt/elasticbeanstalk/deployment/app_version_manifest.json with error: json: cannot unmarshal string into Go struct field AppVersionManifest.Serial of type uint64 When I check that file, I do not know what is wrong with it, or what is

Can I configure Linux swap space on AWS Elastic Beanstalk?

假装没事ソ 提交于 2020-07-06 13:17:43
问题 Can I configure Linux swap space for an AWS Elastic Beanstalk environment? I don't see an option for it in the console. From looking at /proc/meminfo on my running instances in my environment MemAvailable is looking quite low despite there being quite high Inactive values. I suspect there are a few dormant background processes that it would do no harm to page out, and would free up a non-trivial portion of the limited physical memory on the t2.nano I'm using. 回答1: I figured out how to do this