elastic-beanstalk

How do I enable SSH for my AWS-EB instance?

老子叫甜甜 提交于 2019-12-01 11:44:04
I have a working AWS Elastic Beanstalk instance with an attached RDS database and want to enable SSH from my development machine. What's the best way to do that? Specifically, can I do it from the AWS Console and will I be able to preserve all of the my current EB settings and structure? I tired eb ssh --setup but got an error ERROR: Updating Auto Scaling launch configuration failed Reason: API: autoscaling:CreateLaunchConfiguration User: arn:aws:iam::123456789123:user/myiamusername is not authorized to perform: iam:PassRole on resource: arn:aws:iam:: 123456789123:role/aws-elasticbeanstalk-ec2

SELF_SIGNED_CERT_IN_CHAIN error on Elastic Beanstalk for NodeJS

邮差的信 提交于 2019-12-01 10:47:39
I'm well aware of the root of this issue, as npm wrote on their blog: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more The solution is to either: 1) upgrade your version of npm npm install npm -g or 2) tell your current version of npm to use known registrars npm config set ca "" However, neither of these solution work on Elastic Beanstalk. npm is linked to the version of node installed (v0.10.10), and it is not possible to tell the current npm version to use known registrars. I run a 64-bit Amazon Linux instance for NodeJS Adding this command in .ebextensions does

502 bad request on AWS Spring boot application

早过忘川 提交于 2019-12-01 10:37:51
Hi I am new AWS and trying to deploy spring boot application in Elastic Beanstalk . Deployment is successful but not able to access application .Getting 502 Bad Request Gateway nginx/1.10.1 error. Deployment is done on Configuration 64bit Amazon Linux 2016.09 v2.2.0 running Java 8 (nginx proxy server). Is thier any way to solve this issue. After doing googling i found it is because of port mismatch.I wanted to know where i should change the port numbers. From AWS documentation : By default, Spring Boot applications will listen on port 8080. Elastic Beanstalk assumes that the application will

Graphicsmagick not working in Elastic Beanstalk with nodejs and S3

核能气质少年 提交于 2019-12-01 08:13:14
I'm using nodejs and graphicsmagick to process images with text, then streaming the final jpg to S3. Using postman, I was able to test this flow on my localhost and everything works fine. However, I'm having issues now that I moved it to Elastic Beanstalk. When I post to the endpoint, it uploads a blank file to S3 and there are no errors logged in EB. I think it has something to do with the software but am a bit stuck. Any advice appreciated! Thanks! Top file is from localhost, bottom file is from Elastic Beanstalk: http://cl.ly/image/0O231k171N0W var gm = require('gm'); var appRoot = require(

Elastic Beanstalk not creating RDS Parameters

瘦欲@ 提交于 2019-12-01 06:11:22
I'm following this tutorial in an effort to create a Django application on AWS. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html I was able to get everything working with a local sqlite database but I am trying to push the app to a production server. While going through the Elastic Beanstalk init process, I choose to create an RDS instance. My mysite/settings.py looks like this: import os DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ['RDS_DB_NAME'], 'USER': os.environ['RDS_USERNAME'], 'PASSWORD': os.environ['RDS

Spring Boot Application deployed on Elastic Beanstalk Java environment returns 502

风格不统一 提交于 2019-12-01 05:57:18
I'm trying to deploy a very simple Spring Boot application on AWS Elastic Beanstalk using AWS's Java configuration (not their Tomcat configuration), but I keep getting a 502 error with the following log: 2016/06/10 02:00:14 [error] 4921#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 38.94.153.178, server: , request: "GET /test HTTP/1.1", upstream: "http://127.0.0.1:5000/test", host: "my-single-instance-java-app.us-east-1.elasticbeanstalk.com" I've tried setting my port via Spring's application.properties to what the log seems to want (5000, using server

Issue Uploading Files from Rails app hosted on Elastic Beanstalk

情到浓时终转凉″ 提交于 2019-12-01 05:42:56
I have a Rails 3 app that I'm developing locally and deploying on Amazon's Elastic Beanstalk for production. There's several places in my app where images can be uploaded through HTML forms. After upload, I'm then sending the files to S3 for storage. I have no trouble with this workflow while developing locally, but in production, I'm getting a 500 Internal Server Error response during the upload (I'm fairly sure it's before any communication with S3). I ssh'ed into my EC2 instance found traces of the error in /var/app/support/logs/passenger.log. Here's the line that's generated during upload.

Forcing https in elasticbeanstalk with certificate from ACM

不打扰是莪最后的温柔 提交于 2019-12-01 05:40:14
I have provisioned a scalable EB(Elasticbeanstalk) rails(puma) instance. I have applied for https through ACM(Amazon Certificate Manager) and applied it to my load balancer. HTTPS is enabled for my website now. But how do I force redirect to https? I have tried a number of solutions online where it was suggested to make a nginx configuration setting manually through .ebextensions and I am not sure where to get the certificate from ACM for this?(I am assuming that is not possible with ACM right now?). How do I force HTTPS? mb21 The current AWS EB Rails and Node.js setups both use nginx (if your

Restrict HTTP Access to Elastic Beanstalk

两盒软妹~` 提交于 2019-12-01 05:36:31
Is it possible to restrict HTTP access to an Elastic Beanstalk application to only certain IP addresses? I"ve tried adding rules to my environment's Security Group but these don't appear to be having any effect. Is this because all HTTP traffic is routed through the Elastic Load Balancer, which isn't within the security group? I have restricted HTTP access to an Elastic Beanstalk application to only certain IP addresses. Following is my procedure. Create new beanstalk environment in the VPC(Amazon Virtual Private Cloud). Please read following documents. Using AWS Elastic Beanstalk with Amazon

Elastic Beanstalk: How would I run an ebextension command on the worker tier only?

此生再无相见时 提交于 2019-12-01 05:16:13
I have an elastic beanstalk application that utilises both the web tier and the worker tier. Jobs are offloaded onto the worker tier from the web tier via SQS to keep the web-facing servers speedy. Both environments use the exact same codebase, and use an RDS instance under them. I need to run a cron job on the leader server of the worker tier. I've created a .ebextensions folder with a file called crontab in it as follows (it's a Laravel web app): * * * * * root php /var/www/html/artisan do:something:with:database Then, I've created a file called 01cronjobs.config , which updates the