Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
8 views

Elastic Beanstalk PHP 7.2 isn't actually installing 7.2

I have an AWS Elastic Beanstalk application using their PHP 7.2 configuration. However, if I go on one of the instances for it and do phpinfo, it says its on 7.0.32 How on earth do I fix that? ...
0
votes
0answers
12 views

AWS Elastic Beanstalk: Routing system mails to real email address?

How can I from within Elastic Beanstalk instances have system emails routed to a real email address instead of just piling up in like /var/spool/mail/root? I thinking of both system-wide emails by ...
0
votes
2answers
11 views

AWS Elasic Beanstalk : Retrieving environment URL from within instance?

From within a Beanstalk instance, how can I programmatically retrieve the URL for my environment? I need to know this because the instances need to know whether they are running in production or I ...
1
vote
1answer
21 views

Can i run c++ on aws elasticbeanstalk in php application

Since cloud instance is just a machine hosted remotely it should be able to behave like a local server. I have written some programs in C++ which I usually call in a PHP file through exec() function ...
1
vote
0answers
24 views

Elastic Beanstalk environment and security group config for ELB health checker?

I have an Elastic Beanstalk environment that I can't get Health Checks to work on. Here's my Elastic Beanstalk's Load Balancer configuration: My healthcheck URL is /status/ My EC2 security group (...
0
votes
1answer
35 views

Can ssh to EC2 instance but can't eb ssh

When I try to SSH to a certain one of my EC2 instances, it works fine: ssh -i "jason.pem" ec2-user@ec2-34-222-8-173.us-west-2.compute.amazonaws.com # the above works When I try to do eb ssh it doesn'...
1
vote
1answer
28 views

AWS Elastic Beanstalk S3 log archiving and instance termination/recreation

I've recently moved an application to Elastic Beanstalk. I'm currently in the process of setting up log files to be archived. One of the business requirements is x days of log retention, which is ...
0
votes
0answers
32 views

AWS S3 keep throwing 403 forbidden on Font awesome 5 web fonts files

I'm using Font awesome 5 in my application. Every time running "eb deploy", Font awesome icons show up with squares and throw 403 forbidden on the console. To fix that, I make the web fonts files ...
0
votes
1answer
21 views

OwnCloud error deploying to AWS: The username is already being used (not WebDAV related)

I have an instance of Owncloud running on AWS Elastic Beanstalk I’m just deploying it from the docker, so I have a very simple Dockerrun.aws.json { "AWSEBDockerrunVersion": "1", "Image": { "...
0
votes
2answers
131 views

Apache (2.4) only serves 1st virtual host found on elastic beanstalk server

I have an Elastic Beanstalk server which I am using for my employer's main site, example.com and they want me to host one of their ancillary sites on it: go.example.com. So I just created a new ...
0
votes
0answers
58 views

Elastic Beanstalk environment stuck in invalid state with “resource(s) failed to update: [AWSEBAutoScalingGroup]”

I'm in a catch-22: I cannot change the configuration of my Elastic Beanstalk environment because it is not in a "READY" state and I cannot put it in a ready state without changing the configuration. ...
0
votes
0answers
13 views

Forward requests from example.com:8000 (old REST API) to api.example.com (new REST API) on AWS

So I have this problem and I am a bit confused on where to start. I have a Django REST API currently running on a VPS (with apache) and start with djangos runserver command (I know, I know, not the ...
0
votes
0answers
57 views

Elastic beanstalk nginx gateway timeout nodejs

Hiii, My elastic beanstalk recently started to report that "100%" of requests are failing due to some 5xx error. This error somehow goes away when I restart my app servers. I found out that it is 504 ...
1
vote
1answer
49 views

ElasticBeanstalk environment URL points to old EC2 instance IP

For some reason I manually terminated the EC2 instance of my EB environment more than a week ago. A new instance started, and I thought it was all fine. However, today, I see that my EB environment ...
0
votes
1answer
388 views

Nginx doesn't find ssl_certificate in docker, even though it's there

I'm running multidocker on AWS EB. The setup looks like this: Dockerrun.aws.json (xxx as placeholder for the domain. The app is not secure) { "AWSEBDockerrunVersion": 2, "volumes": [ { ...
0
votes
0answers
21 views

EB: Environment health has transitioned from Info to Severe

I have just created a new environment on Elastic Beanstalk and managed to deploy first time to it. However, after the deploy finished (on Green state of course) the application on EB went to Red ...
0
votes
0answers
37 views

Redirects to HTTPS Nginx in AWS Elastic Beanstalk with websocket suppport

I have an Elastic Beanstalk environment with load balancer fully working with https and websocket. Now I need to redirect http traffic to https. This is my nginx config file: files: "/etc/nginx/...
1
vote
2answers
24 views

Releasing Elastic IP on EC2 had Cloudfront stop working

I had reached the limit of Elastic IP allocations in my AWS account. I have an Elastic Beanstalk app that is being served over Cloudfront. I thought since the app's CNAME was mapped to Cloudfront's ...
0
votes
0answers
20 views

Configuring ElastiCache through .ebextensions resources for multiple regions

This is my elasticache.config inside the .ebextensions folder and it is working as expected for my main region but not for my second region due to different SubnetIds and VpcSecurityGroupIds: ...
1
vote
2answers
101 views

WordPress admin pages timeout, or take 30s to load on Elastic Beanstalk, PHP 5.6, Apache, RDS, and CloudFlare

I recently migrated a WordPress website I inherited over to AWS from Rackspace and am experiencing large performance decreases. I'm pretty new to the whole DevOps thing so I'm not sure where to start ...
0
votes
0answers
79 views

AWS Elastic Beanstalk - can't db:reset / db:seed Rails app after SSH

I'm stuck deploying my (second) Rails 5.2 app to AWS using Elastic Beanstalk. The code is deployed fine, but the PostgreSQL 9.4.18 database is causing problems. EB correctly created the RDS instance. ...
0
votes
0answers
55 views

Deploy to AWS EB and immediately get probed by Chinese-sounding hack

That's twice now I've deployed separate apps to AWS via Elastic Beanstalk and within 12 hours of instantiation, while I'm looking through the log files I see this: ------------------------------------...
0
votes
1answer
20 views

DNS fail on Google Search Console

I've some domais that are hosted on AWS Elastic Beanstalk. Despite the fact that the doman are reacheable (https://localfitness.com.br) by the browser, when I try and ping tool the results are always ...
0
votes
1answer
45 views

Elastic Beanstalk: Update AMI + node version at the same time

We have a system that's been sitting on an old version of node for a long time and wanted to update to a newer version. Updating via the web dashboard doesn't allow you to change the node instance ...
0
votes
0answers
23 views

Bundling multiple WAR files for in Elastic Beanstalk

Our application has multiple WAR files. I've been following the documentation here to try and bundle them, however I'm using the pre-configured Docker + Glassfish template rather than Tomcat: https://...
2
votes
0answers
158 views

AWS EB with python 3.6 errors and uses python 2.7

How do I get the aWS EB instance to use the python 3 version that is already installed on the instance? I can't get a new environment running with Python 3.6 running Django 2.1+. Local (not in ...
0
votes
1answer
100 views

What is my resolver on an AWS Elastic Beanstalk nginx?

I have a nginx in docker on an AWS Elastic Beanstalk. I need to provide the resolver of nginx. What resolver do I need to use? I read about: resolver 169.254.169.253; OR resolver 172.16.0.23; And ...
0
votes
1answer
23 views

What's the simplest way to make a git push on a branch automatically deploy to my AWS Elastic Beanstalk environment?

I want to be able to make a commit to my repo via GitHub WebUI, and have a webhook start a eb deploy process of the new HEAD commit automatically. I understand there are tools for this (CodePipeline/...
0
votes
1answer
99 views

How to control AWS Elastic Beanstalk auto scaling based on average response times if one endpoint is expected to take circa 60 seconds

We auto-scale our Elastic Beanstalk Java Application based on the average response times exceeding 3 seconds. When this happens we add 2 instances to our environment. Once we are back within 1.5 ...
0
votes
0answers
113 views

AWS Elastic Beanstalk ACM SSL certificate installation without load balancing

Reading through the AWS docs just now, it appears that: I can get a free SSL/TLS certificate from Amazon for use with certain AWS services. This is facilitated via the ACM (AWS Certificate Manager) ...
0
votes
0answers
13 views

failed to create: [MyElastiCache] when trying to add ElastiCache to Elastic Beanstalk deployment

I'm trying to add ElastiCache to my rails deployment on Elastic Beanstalk. I've followed the instructions, but am getting the following error when trying to deploy: Uploading: [#######################...
0
votes
1answer
19 views

Can I change the user that runs a java Elastic Beanstalk app

I'm successfully running a Java app in Elastic Beanstalk. Is there anyway I can control the ID of the user that starts the app? It looks like it by default it's running as user webapp - I have no ...
0
votes
0answers
75 views

Redirect for non-www to www not working for https

I am attempting to redirect all non-www requests to www with my nginx server, but despite successfully redirecting the http request (http://example.com to https://www.example.com), the https request ...
0
votes
0answers
21 views

Nginx - Root Not Redirecting to www Despite Records and Server Block

I am trying to redirect non-www requests to www, but it appears that either my Nginx config is not running the redirect in the below server block or the fact that SSL is enabled, but not for the non-...
1
vote
1answer
49 views

Losing database connection with high traffic on AWS - not sure where to start troubleshooting

I'm designing a highly available WP site on AWS using Elastic Beanstalk, and testing use load with a Locust. Everything looks alright: my EC2s are t2.mediums, auto scaled over 3-6 availability ...
0
votes
1answer
116 views

Elasticbeanstalk Customize Nginx through ebextension

I have been literally all day fighting with this, I just need to increase the client_max_body_size in my Nginx Configuration. I have a tomcat configuration (custom ami) and I tried this so far. ...
0
votes
0answers
23 views

How to convert EC2 to ElasticBeanstalk and keep same elastic IP?

I have a service running on a manually created EC2 instance with an elastic IP. I would like to convert the EC2 to an elastic beanstalk deployment but keep the same IP address. I assume I can create ...
0
votes
1answer
71 views

Nginx Non-WWW Redirect to WWW Record Issue

I am running Nginx via an AWS ElasticBeanstalk application and have Https enabled through a load-balancer and forced Https redirect for www., but it appears that there is either an issue with my ...
0
votes
0answers
10 views

Can't get Elastic Beanstalk load balancer to scale down to a single EC2 node

I'm running a tiny application on Elastic Beanstalk that usually does not get much traffic, hence I'd like to use only one EC2 machine by default (with auto-scaling in place in case there is more ...
0
votes
1answer
89 views

How to setup multiple schedules with cron.yaml

I am working with AWS Elastic beanstalk and have my worker server running and loading job successfully. However I have a cron job that I am wanting to run at multiple hours of the same day but I am ...
-1
votes
1answer
455 views

Forwarding HTTP to HTTPS on Elastic Beanstalk load balancer

I'm using Elastic Beanstalk, and I installed my SSL certificate in the load balancer of an EC2 instance belonging to the EB. Every time the server is not healthy, the load balancer delete the ...
3
votes
4answers
1k views

Can't add RDS database to Elastic Beanstalk environment

I've created maybe 10 Elastic Beanstalk environments with a connected RDS database, but for some reason on this application I'm unable to add an RDS database to my elastic beanstalk environment. I'm ...
1
vote
1answer
118 views

AWS Elastic Beanstalk removes EC2 instance creates it again when my server is down

I'm using Elastic Beanstalk (EB) in AWS, and I have a serious problem. When my server is down, the EB removes its EC2 instance and creates another instance again. I guess this is how EB handles the ...
0
votes
0answers
109 views

How to find and change DB Security Group to VPC Security Group

I have a ElasticBeanstalk environment that I can't update any more: Environment update is starting. Environment health has transitioned from Ok to Info. Application update in progress (...
1
vote
0answers
18 views

Resetting and Reconfiguring AWS EB After Large Backend Changes

I had a Python 2.7 Django project I was running as an Elastic Beanstalk Application, which also utilized a S3 bucket for numerous resources. I ran into compatibility issues that necessitated switching ...
0
votes
0answers
74 views

How to connect a worker environment to the same database being used by a web server on aws elastic beanstalk

What I have tried so far is to set the following environment variables on the worker environment RDS_HOSTNAME RDS_PORT RDS_USER_NAME RDS_DB_NAME RDS_PASSWORD Then I restarted the app server but it ...
0
votes
1answer
708 views

AWS EB and RDS: Invalid storage size for engine name mysql and storage type gp2

I'm trying to deploy my (python/django) application to AWS Elastic Beanstalk, but I am getting the error. Deployments have been working fine for the last few months, so I'm confused what could be the ...
0
votes
1answer
33 views

Configuring domain name to point to AWS

I'm trying to get a website I have hosted on AWS working with my domain bitshift.in I have the following records: A Record: host=@ value=54.208.24.186 A Record: host=www value=54.208.24.186 ...
1
vote
0answers
163 views

How to change termination policy for auto-scaling-groups created by Elastic Beanstalk?

I'm using "T2 Unlimited" instances with my AWS Elastic Beanstalk configuration. The default instance termination policy (for when scaling down) terminates the oldest instances first. This is bad ...
0
votes
0answers
60 views

How to refer Elastic beanstalk resources in Alarm

Below is the code snippet which I am using to create an elastic bean stalk. I have deleted some part of the code but I have ran this code and beanstalk is created. BeanStalkApplciation: Type: '...