Questions tagged [elastic-beanstalk]

AWS Elastic Beanstalk is a PaaS (Platform as a Service) service that allows you to quickly deploy and manage applications in the AWS cloud. Elastic Beanstalk handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.

Filter by
Sorted by
Tagged with
2
votes
0answers
23 views

Set CPU options on Elastic Beanstalk environment via Cloud Formation

I have an Elastic Beanstalk worker app that is doing some memory-intensive single-threaded computation. All the available instance types that meet my memory requirements (16 Gb) have 2+ vCPUs, so I ...
0
votes
0answers
15 views

Elastic Beanstalk Custom Nginx conf

I'm setting up a new Amazon Linux 2/PHP/NGINX environment and I'm a little unfamiliar with Nginx since my last environment on Elastic Beanstalk was Amazon Linux/PHP/Apache. (Amazon changed the proxy ...
1
vote
1answer
33 views

Outputting JSON logs on Elastic Beanstalk with Amazon Linux 2

We're trying to migrate our Java applications from from the current Elastic Beanstalk JDK 8 platforms to the new ones running Corretto 11 on Amazon Linux 2. The app works well, but the way logs are ...
0
votes
0answers
12 views

AWS .ebextensions: running some scripts on new instance creation only, not on every deployment

I have sniffed around the aws docs for something along these lines, but haven't found anything. I have a relatively long running script which installs some libraries and their dependencies. It takes ~...
1
vote
1answer
47 views

How do I _remove_ ec2 key pairs from beanstalk environments that already have key pairs assigned to them?

I have a very stupid problem My beanstalk environments have ec2 key pairs attached to them I have since setup my EC2 roles to allow Session Manager to work. So now I dont need key pairs for my ...
1
vote
0answers
9 views

Elastic Beanstalk suddenly stopped connecting to RDS database?

I have a Flask app that I'm deploying with Elastic Beanstalk. It connects to an RDS database running MySQL. I can connect to it just fine from my computer or through SSHing to the EC2 instance and ...
3
votes
1answer
31 views

What could cause the application load balancer to forward traffic to a unready instance even when the health check is failing?

I have an AWS Elastic beanstalk environment which can scale from 2 to 3 instances configured with an application load balancer. The load balancer has an HTTP healthcheck configured looking for a 200 ...
0
votes
0answers
16 views

Why can't I restart an Elastic Beanstalk instance which ran previously but had instances set to zero?

I have an Elastic Beanstalk environment which I had up and running the first time I was learning to use it. But then I noticed it was running all the time, which I didn't want yet, but I wanted to ...
0
votes
1answer
24 views

Make a new EC2 instance on Elastic Beanstalk

I deployed my app onto Elastic Beanstalk. I have a few questions related to the EC2 instances: By running en ssh, I understand that I will ssh onto one of the instances. What if there is more than ...
0
votes
0answers
22 views

Extra npm install step in elastic beanstalk

I am painfully transitioning from Heroku to Beanstalk. My package.json looks like this: "scripts": { "start": "SERVE_BUILT=true NODE_ENV=production node server/upgrade.js; SERVE_BUILT=true ...
1
vote
0answers
12 views

Elasticbeanstalk How do I specify Pango >= 1.38 in my config files?

I'm getting the following error: Elasticbeanstalk UserWarning: @font-face support needs Pango >= 1.38 I need to install Pango >= 1.38 on elasticbeanstalk. I have the following .ebextensions\...
2
votes
1answer
56 views

AWS Beanstalk Auto-scaling Scaling Triggers with UnhealthyHost count and Health Checking

I have my scaling triggers set to look for an un-healthy host count but it does not seem to be working. Now to test this - I am SSHing into one of my instances and halting the HTTPD service. Then, ...
0
votes
1answer
49 views

How to set an application-specific configuration file in Elastic Beanstalk?

I have an application which I host in Elastic Beanstalk. I have modified this application so that it can be configured with an external configuration file, but now I don't know how to upload/set the ...
0
votes
1answer
112 views

Connect to Elastic Beanstalk's EC2 Instance using SSH?

Background: I'm running Metabase on Elastic Beanstalk, and I followed Metabase Documentation. Now, I want to implement SSL, and I will follow this guide to install Let's Encrypt. So to install Let's ...
0
votes
1answer
231 views

what can cause Nginx “Connection reset by peer” when upstream is healthy?

On an AWS Beanstalk deployment (single server) the Nginx server talking to the NodeJS/Express server on the same host occasionally complains about lost connections to upstream. 2020/03/23 10:52:43 [...
0
votes
0answers
16 views

AWS load balancer sending traffic to unhealthy instances

I have an Elastic Beanstalk environment with four EC2 instances and an ALB. If I look on the EB dashboard, I can see my EC2 instances; if a PHP error gets introduced on one of them, that instance gets ...
5
votes
2answers
187 views

How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?

Background: I've worked with EC2 and RDS. Recently I received a query from a client in which he wants to develop both mobile and web applications using Amazon Web Services, and need advice on which ...
0
votes
0answers
20 views

Beanstalk environment bricked, m4.xlarge requries VPC

I must be missing something because I'm sure it's not possible to brick a beanstalk environment. Today I tried to change a new environment's configuration in beanstalk to go from t2.micro instance ...
0
votes
0answers
11 views

How to implement redirection to subpath

I have a Flask website hosted on AWS Elastic Beanstalk. I want to use third-party service for hosting documentation app. It can provide custom subdomain. So, for example mydocs.service.com could be ...
0
votes
0answers
28 views

Faulty elasticache permissions with Elastic Beanstalk

I'm using ElastiCache with Elastic Beanstalk, and everything is working fine, but I get the following events in my logs every 7 days: Updating Auto Scaling group named: awseb-e-xxx-stack-...
0
votes
0answers
12 views

AWS Xray Logs is empty

I recently created a beanstalk app but when i go to my Xray console, the console is empty. Attached is a picture of my beanstalk and xray Beanstalk Health Dashboard AWS Xray Dashboard
0
votes
0answers
35 views

Websocket configuration for Elastic Beanstalk instance

I have a problem with proper nodejs WebSocket server configuration on AWS EB. I have a client app and a chrome extension that is maintaining WebSocket connection with the server. But when the ...
0
votes
0answers
113 views

Application Load Balancer with AWS Elastic Beanstalk - Target Group

I'm using an Application Load Balancer with AWS Elastic Beanstalk After an AWS automatic server update, I was getting a 503 Service Temporarily Unavailable page. (only this, with near zero server ...
1
vote
1answer
153 views

Cloudfront disrupting authentication with JSON Web Token

Short version: my jwt token is not surviving a refresh when pointing to domain behind Cloudfront. Not sure if this is best posted here or on stackoverflow, but since I think I've isolated the problem ...
1
vote
0answers
14 views

Is there a way to provide a config file or private key to an Elastic Beanstalk instance?

I have an EBS instance running a Golang webserver application, which uses a config.json that contains important and private configuration values like Database address, user and password. I've been ...
1
vote
1answer
653 views

NotFoundError - The EB CLI cannot find your SSH key file for keyname

I ran the command eb use my-environment-name Inside of my directory: /myProject I have a directory .ssh with the keypair file 'mykey' /myProject/.ssh/mykey I then run eb ssh I then get this ...
0
votes
0answers
297 views

Command failed on instance. Return code: 1 Output: (TRUNCATED) on AWS elastic beanstalk for nodejs app

I am new to AWS and while uploading a nodejs app to AWS beanstalk, I am getting the error [Instance: i-00dee873eeaed8bbb] Command failed on instance. Return code: 1 Output: (TRUNCATED)...ry/Brass-...
0
votes
1answer
60 views

How to accurately gauge memory usage in Elastic Beanstalk/EC2 server?

I have an elastic beanstalk environment running a nodejs server. I'm trying to gauge memory usage to determine which instance type is most appropriate, and how much memory we actually need. To do so, ...
0
votes
1answer
303 views

attackers bypass aws waf to go for ec2 instances directly

My Setup I have Elastic Beanstalk application, with a public LoadBalancer and public IPs on EC2. The application is behind CloudFront, which is protected with AWS WAF from different attacks I am ...
0
votes
0answers
128 views

AWS Elastic BeanStalk Error writing to |/usr/sbin/rotatelogs

I have an AWS beanstalk app that after a reboot runs pretty smoothly for few hours, then all of the sudden the latency starts creeping up. When I check the logs, I find a lot of these messages [...
0
votes
0answers
22 views

Get old AWS access logs

I am trying to retrieve AWS httpd access-logs for the last week. When I go to logs, Request full logs, I only receive logs for the last 24h-48h. I am however looking for events that are roughly seven ...
0
votes
1answer
889 views

Restoring suspended AWS account now Error 500

I have a django app on AWS Elastic Beanstalk that was suspended when I forgot to update my payment info when it changed. Once corrected, the env says it's healthy but all I get is 500s. When I go to ...
0
votes
0answers
33 views

Weird django REST APIs behaviour

We are having django application, which is hosted on AWS Elastic Beanstalk. It is connected to RDS. Application Server: c5.4xlarge RDS: postgreSQL 9.5 (m5.4xlarge) The issue is APIs are sometimes ...
5
votes
1answer
624 views

I want to put WordPress — all of it — on EFS. Should I?

I have a WordPress site that, as of now, I am running completely on an Amazon Lightsail instance. It gets properly backed up; availability is okay; security is good; it's a simple setup to maintain. ...
0
votes
1answer
1k views

Elastic Beanstalk Health Degraded

I am trying to to deploy an Node.js Docker image to Elastic Beanstalk using Travis CI. The tests and builds in Travis keep passing and successfully deploying however, I keep getting the following ...
0
votes
0answers
24 views

Do AWS elastic beanstalk EC2s behind a load balancer have different source IP addresses?

I'm trying to distribute my requests to a rate limited service between a few different servers. I've set up load balanced elastic beanstalk service to do so. My question is will outgoing requests from ...
0
votes
0answers
16 views

Traffic handling capacity for 1 EC2 instance for t3.2xlarge [duplicate]

Protocol exchange between phone server and IOT device(inter regional). say there are 100000 users and each are requesting or using 12 - 20 times a day may be approximately at the same time(protocols ...
1
vote
1answer
123 views

How do I set up an SSL in Certificate Manager for a subdomain where the domain is not held in Route 53?

I'm trying to connect a subdomain to an AWS Elasticbeanstalk instance running a Django application using a certificate from AWS Certificate Manager. The domain is registered at 123-Reg. AWS ...
0
votes
0answers
46 views

Configuring https for Elastic Beanstalk environment

We have deployed our .net core web api on aws elastic beanstalk. So far it is working fine using http, However now we need to configure it to https where we are struggling right now. So far we have ...
1
vote
1answer
80 views

Install gRPC php extension in elastic-beanstack [closed]

I need to install gRPC php extension elastic-beanstack. The way i found is to write a config file inside ".ebextensions" in order to automatically install the extension. For that I need to create yaml ...
0
votes
2answers
241 views

How to auto-terminate EC2 instances after 24 hours?

An auto-scaling group launches EC2 instances and it appears that instances that run roughly >24 hours begin to degrade in performance. The longest one was running for 3 days until I manually ...
0
votes
3answers
921 views

How to make laravel queue work in aws beanstalk?

I made an AWS Beanstalk and RDS instances. I'm testing out a project which syncs FTP and S3 files. How do I make the typical php artisan queue:work or php artisan queue:listen work in AWS Beanstalk? ...
1
vote
0answers
13 views

Routing https in AWS beanstalk

I currently have an AWS BeanStalk setup. I'm attempting to run my traffic through https. In my beanstalk configuration I have my Document root set to /public. This is because I'm running Laravel ...
0
votes
0answers
755 views

(111: Connection refused) while connecting to upstream, client

I'm trying to setup an Nodejs/Express api on elastic beanstalk, and I'm pretty new to it. I'm getting this message in the error.log: 2019/10/02 17:04:17 [error] 5515#0: *15 connect() failed (111: ...
2
votes
1answer
239 views

How to change Elastic Beanstalk launch configuration to launch template?

I want to replace the launch configuration with a launch template for my existing Elastic Beanstalk environment. In the EC2 dashboard I created a launch template and selected it in the existing EB ...
1
vote
1answer
81 views

Is there a way to have multiple external IP addresses with Elastic Beanstalk?

I'm using Amazon Elastic Beanstalk with a VPC and I want to have multiple environments (workers) with different IP addresses. I don't need them to be static, I would actually prefer them to change ...
0
votes
1answer
92 views

How to include sticky session in AWS Elastic Beanstalk using Cloud Formation template

As I searched for the stickiness in Elastic Beanstalk I didn't find the way how to include it using AWS Cloud Formation. Can anyone help me to do that thing. Thanks in advance.
1
vote
1answer
65 views

What's the difference between setting AWS Load Balancer to VPC internal and setting equivalent inbound rules?

I'm setting up an API endpoint that I only want to be accessible from other applications inside my VPC. The app is on Elastic Beanstalk and it appears that I can either set my Load Balancer to ...
0
votes
0answers
33 views

What is the difference between Sessions in ElasticBeanstalk and Stickiness option in Target Groups in AWS

I am using Elastic Beanstalk to deploy my code and I am using Application load balancer here.When I want to set sticky session, I found two options. 1) Sessions option(Elastic Beanstalk-->my ...
0
votes
0answers
69 views

Redis server shutdown on EC2: can no longer connect rq workers, and Elastic Beanstalk won't connect

Yesterday I successfully set up a Redis server on AWS EC2, and was able to connect rq workers to it and run a Flask application sending processes to it from my local machine. Today I successfully ...

1
2 3 4 5
10