elastic-beanstalk

AWS Elastic Beanstalk environment variables in ASP.NET Core 1.0

给你一囗甜甜゛ 提交于 2019-11-27 18:45:41
How do I get environment variables from elastic beanstalk into an asp.net core mvc application? I have added a .ebextensions folder with app.config file in it with the following: option_settings: - option_name: HelloWorld value: placeholder - option_name: ASPNETCORE_ENVIRONMENT value: placeholder The .ebextensions folder is included in the publish package. On deployment, both the variables are visible in the aws elasticbeanstalk console at Configuration > Software Configuration > Environment Variables However, when I try to read the variables in the application, none of the below options are

Authorization Credentials Stripped — django, elastic beanstalk, oauth

送分小仙女□ 提交于 2019-11-27 17:16:47
I implemented a REST api in django with django-rest-framework and used oauth2 for authentication. I tested with: curl -X POST -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=password&username=YOUR_USERNAME&password=YOUR_PASSWORD" http://localhost:8000/oauth2/access_token/ and curl -H "Authorization: Bearer <your-access-token>" http://localhost:8000/api/ on localhost with successful results consistent with the documentation. When pushing this up to an existing AWS elastic beanstalk instance, I received: { "detail" : "Authentication credentials were not provided." } I

Elastic Beanstalk Ruby/Rails need to install git so bundle install works.. but is not

萝らか妹 提交于 2019-11-27 11:33:44
I'm having an issue deploying our rails app.. I created a hook like the example on the AWS blog howto http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git like: packages: yum: git: [] even I run a bundle package to create vendor/cache to have all the gems there... and still getting: git://github.com/refinery/refinerycms-search.git (at 2-0-stable) is not checked out. Please run bundle install (Bundler::GitError) any help will be nice, we trying to move all our apps to EB. but seens that git does not install or something is going on.. I need

How to link godaddy domain with AWS Elastic Beanstalk environment?

淺唱寂寞╮ 提交于 2019-11-27 05:53:35
I'm running into this problem trying to link my Godaddy domain with an AWS Elastic Beanstalk instance . I found a lot of documentation on how to link an EC2 instance with a domain on Godaddy but not for Elastic Beanstalk instance. So I ended up with this URL: www.MY_SITE.elasticbeanstalk.com Here is what I did for an EC2 instance: I updated the Nameservers on my Godaddy domain with the ones from my Route 53 Hosted Zone . I created a new Elastic IP on the EC2 console. I went back to Godaddy and updated the DNS A @ field from their DNS Manager, with the EC2 Elastic IP one. You normally have to

How to get Elastic Beanstalk nginx-backed proxy server to auto-redirect from HTTP to HTTPS?

纵饮孤独 提交于 2019-11-27 02:53:51
I've got a Node.js powered site that I'm running on Amazon Elastic Beanstalk. My Node.js app listens on port 8080, and I'm using the nginx elastic load balancer configuration with my EB app, listening on port 80 and 443 for HTTP and HTTPS. However, I only want to accept traffic in my app that has come via HTTPS. I could rig something up in the app to deal with this, but am interested in a way to get the load balancer to redirect all HTTP requests to my site via HTTPS. Mason G. Zhwiti After several false-starts with ideas from Amazon's paid support, they did come through in the end. The way you

Beanstalk: Node.js deployment - node-gyp fails due to permission denied

纵饮孤独 提交于 2019-11-26 18:34:01
Deployment of a Node.js application (Node 6, npm 5) to Beanstalk fails with: gyp ERR! stack Error: EACCES: permission denied, mkdir '/tmp/deployment/application/node_modules/heapdump/build' though the error is not package-specific, any node-gyp call fails. The ERROR event in the AWS Console reads: [Instance: i-12345] Command failed on instance. Return code: 1 Output: (TRUNCATED).../opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install raise e subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/bin/npm', '--production', 'install

Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk

对着背影说爱祢 提交于 2019-11-26 17:06:08
I'm running into "413 Request Entity Too Large" errors when posting files larger than 10MB to our API running on AWS Elastic Beanstalk. I've done quite a bit of research and believe that I need to up the client_max_body_size for Nginx, however I cannot seem to find any documentation on how to do this using Elastic Beanstalk. My guess is that it needs to be modified using an ebetension file. Anyone have thoughts on how I can up the limit? 10MB is pretty weak, there has to be a way to up this manually. Nick Parsons There are two methods you can take for this. Unfortunately some work for some EB

How to force https on elastic beanstalk?

自古美人都是妖i 提交于 2019-11-26 15:44:49
I can't seem to force https on the free usage tier of elastic beanstalk. I have tried the following suggestion at How to force https on amazon elastic beanstalk without failing the health check Using this Apache rewrite rule RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{REQUEST_URI} !^/status$ RewriteCond %{REQUEST_URI} !^/version$ RewriteCond %{REQUEST_URI} !^/_hostmanager/ RewriteRule . https://%{SERVER_NAME}%{REQUEST_URI} [L,R] When I try that, http requests do not get redirected to https as I would like. Instead, the http page loads normally. I've also tried

How do you pass custom environment variable on Amazon Elastic Beanstalk (AWS EBS)?

别说谁变了你拦得住时间么 提交于 2019-11-26 12:03:16
The Amazon Elastic Beanstalk blurb says: Elastic Beanstalk lets you "open the hood" and retain full control ... even pass environment variables through the Elastic Beanstalk console. http://aws.amazon.com/elasticbeanstalk/ How to pass other environment variables besides the one in the Elastic Beanstalk configuration? lime As a heads up to anyone who uses the .ebextensions/*.config way: nowadays you can add, edit and remove environment variables in the Elastic Beanstalk web interface. The variables are under Configuration → Software Configuration: Creating the vars in .ebextensions like in

AWS Elastic Beanstalk, running a cronjob

杀马特。学长 韩版系。学妹 提交于 2019-11-26 12:02:23
I would like to know if there is a way to setup a cronjob/task to execute every minute. Currently any of my instances should be able to run this task. This is what I have tried to do in the config files without success: container_commands: 01cronjobs: command: echo "*/1 * * * * root php /etc/httpd/myscript.php" I'm not really sure if this is the correct way to do it Any ideas? Anarchtica This is how I added a cron job to Elastic Beanstalk: Create a folder at the root of your application called .ebextensions if it doesn't exist already. Then create a config file inside the .ebextensions folder.