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.
495
questions
1
vote
1
answer
616
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 ...
2
votes
0
answers
241
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
1
answer
2k
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" [email protected]
# the above works
When I try to do eb ssh it doesn'...
1
vote
1
answer
970
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
1
answer
829
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
2
answers
748
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 ...
3
votes
0
answers
5k
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.
...
1
vote
1
answer
221
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 ...
2
votes
1
answer
4k
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": [
{
...
1
vote
2
answers
280
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 ...
1
vote
2
answers
1k
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 ...
1
vote
1
answer
984
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
1
answer
69
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 ...
1
vote
1
answer
443
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 ...
2
votes
0
answers
2k
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 ...
3
votes
1
answer
4k
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 ...
1
vote
1
answer
675
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
1
answer
1k
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 ...
1
vote
0
answers
2k
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
1
answer
297
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
0
answers
342
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 ...
1
vote
1
answer
286
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
1
answer
3k
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
1
answer
510
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
1
answer
3k
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
1
answer
1k
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 ...
4
votes
5
answers
5k
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
1
answer
656
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 ...
1
vote
0
answers
53
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 ...
3
votes
1
answer
28k
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 ...
1
vote
1
answer
140
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
...
6
votes
1
answer
1k
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
1
answer
1k
views
single or multiple docker containers per host
So we are in the phase of designing a pipeline for deploying our app to production.
We have 5 services that needs to talk each other, and currently using docker for developing.
We are studying ...
1
vote
0
answers
416
views
Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlk
I am current trying to deploy a Flask Application (an API Application) onto Elastic Beanstalk. But I am getting mod_wsgi error.
Here is the error message:
[Fri Jun 01 06:10:49.314023 2018] [:...
1
vote
1
answer
3k
views
Route53 SSL Subdomain
I have a setup where I have a top level domain hosted and the DNS is done through Route53. The SSL certificate is done through AWS certificate manager and works fine for the top level domain. It is ...
0
votes
0
answers
204
views
AWS Route 53 subdomain to different ELB
I currently have two different ELB apps set up. One for production and one for development. I have Route53 handing the DNS for the site. Currently I have an A record for the main site (and another for ...
1
vote
0
answers
335
views
Django deployed on Elastic Beanstalk intermittently hangs on login
I have a demo django application that is on an Elastic Beanstalk instance that I am showing, and I've had weird intermittent behavior. Sometimes I get stuck at the login menu (the whole site requires ...
1
vote
0
answers
653
views
What are the best practices to configure CloudWatch alarms for a Tomcat webapp?
I have a Tomcat webapp deployed on Elastic Beanstalk for which I want to configure CloudWatch alarms, especially for when the web server is down. The Tomcat container uses Google OAuth2 for ...
5
votes
0
answers
517
views
Updating to latest Docker images in Elastic Beanstalk Multicontainer
I'm running a site on Elastic Beanstalk using a multi container set up. I'm wondering what is the preferred strategy to pull in the latest images.
On the CI server, after successful commits to master,...
2
votes
1
answer
766
views
Condition for Cloudformation Resource
So the thing is:
I have this resource creation set for AWS Cloudformation using ElasticBeanstalk, which creates additional internal_loadbalancer:
Resources:
IntLB:
Type: AWS::...
0
votes
1
answer
67
views
How to define platform options the same as official platforms in Elastic Beanstalk custom platform
I'm trying to define the same platform option as defined in the official platforms on my custom platform. But, it gives me the error below when I run ebp create.
ERROR: Option definition namespace '...
1
vote
1
answer
518
views
leader_only is not working in Elastic Beanstalk
We are doing CI/CD for drupal site using Jenkins. Now, we need to run drush commands which we should run only in single instance.
For this, we have created elastic beanstalk config script with ...
0
votes
0
answers
149
views
How to assign ACM Certificate to Elastic Beanstalk security group?
Stack
Elastic Beanstalk
AWS Route 53 for DNS.
AWS Certificate Manager for SSL Cert.
What I have done
I have added the CNAME for the certificate (Through the wizard provided by AWS for Route 53).
I ...
1
vote
1
answer
2k
views
How to change working directory of container_command in Elastic Beanstalk custom platform
The working directory to execute container_command defined in the application's .ebextensions is /tmp on the sample custom platform NodePlatform_Ubuntu, while I expected it to be the staging directory ...
1
vote
0
answers
155
views
Launch an AWS Elastic Beanstalk environment with Python 2.7 instead of 3.6
The issue I'm having is pretty straight forward: I used to be able to launch new Elastic Beanstalk environments through the AWS web console for an existing application using a Python 2.7 platform. Now,...
1
vote
1
answer
1k
views
nginx blank page with puma and rails on beanstalk
I tried to deploy rails api to elastic beanstalk with nginx and puma as the app server. THe deploy was successful, database created and migrated.
However, when accessing the web, it just show ...
6
votes
2
answers
2k
views
AWS elastic beanstalk: Errno 404 downloading file from S3 on deployment
I'm following the docs on fetching certificates from s3 when a new instance is deployed to elastic beanstalk. The instructions are fairly straightforward: create a config file under app-root/....
1
vote
0
answers
433
views
Elastic Beanstalk custom AMI not working
Below are the different methods I tried to launch a custom AMI in Elastic Beanstalk but none seems to work.
Launched the default Amazon AMI for PHP 7.0. Created a Ubuntu instance and installed all ...
2
votes
1
answer
4k
views
AWS Elastic Beanstalk - Socket failure on Puma server when more than 300 connections at a given time
I've been dealing with an, arguably, strange issue on a AWS Elastic Beanstalk environment. I'm getting the following nginx error when there are more than 300 connections on a single instance at a ...
1
vote
1
answer
272
views
Rolling with additional batch policy does not work and diapered from Beanstalk console
Rolling with additional batch policy diapered from Beanstalk console and it is not visible from Rolling updates and deployments page.
From the main Configuration page everything looks fine.
The main ...