AWS Elastic Beanstalk - Increase Instance Disk Capacity

I'm trying to use ElasticBeanstalk for an app with some big initial space requirements. It exceeds the default 8GB capacity of the EBS disk on the EC2 instances. I tried to increase the disk...

How do you switch between applications using EB CLI?

I managed to get a rails app running throw Elastic Beanstalk using the EB CLI and instructions outlined here:...

Error with not existing instance profile while trying to get a django project running on AWS Beanstalk

I`m trying to deploy a django project to AWS Beanstalk following this tutorial. I executed eb create and after a while I get the error The instance profile aws-elasticbeanstalk-ec2-role...

How to delete empty S3 bucket which generated by Elastic Beanstalk?

In my console, I see an empty S3 bucket created by AWS Elastic Beanstalk. Its name is 'elasticbeanstalk-ap-northeast-1-xxxxxxx'. I already removed my Elastic Beanstalk project, however the S3...

AWS ElasticBeanstalk can't find Dockerfile

I have the following directory layout ./www/index.php Dockerfile apache-config.conf I then zip up the file and upload it onto Elastic Beanstalk, but I get the following error message: [Instance:...

How can I resolve the error "The security token included in the request is invalid" when running aws iam upload-server-certificate?

I cd into the directory where all the pem/key files are and run the following: aws iam upload-server-certificate --server-certificate-name certificate_name --certificate-body...

AWS Elastic Beanstalk environment variables in ASP.NET Core 1.0

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...

AWS ElasticBeanstalk .ebextensions not being executed

I am trying to get a few things completed post deploy on AWS EB. I have added my .ebextensions to the git repository and I only have one file 01_container_commands.config, it does not appear to...

AWS Elastic Beanstalk: Add custom logs to CloudWatch?

How to add custom logs to CloudWatch? Defaults logs are sent but how to add a custom one? I already added a file like this: (in .ebextensions) files: ...

When do I need to have CAPABILITY_NAMED_IAM

I was editing my CloudFormation templates and suddenly AWS tells me I need CAPABILITY_NAMED_IAM. I am curious as to which change triggers this? What is a named IAM resource? Before I already...

Enable logging to Cloudwatch of the tomcat log files of Elastic Bean Stalk

I am farely new to the AWS environment, and trying to configure the logs produced by the tomcat instance eunninging enside an AWS ElasticBeanstalk, to Cloudwatch. I tried configuring it from the...

How To Extract Load Balancer Name from Elastic Beanstalk Environment in CloudFormation

I have created a Elastic Beanstalk and CloudWatch Alarm in CloudFormation with the following code snippet: "ElasticBeanstalkEnvironment": { "Type":...

How to edit nginx configuration of an AWS ELB environment for larger payload limit?

I need to edit nginx configuration of an AWS ELB environment so that it accepts payload(post request body) up to 50MB. The default nginx payload limit is 1MB. I researched many questions and...

AWS Elastic BeanStalk nodejs Deployment error

I am stuck in a very weird issue from the last two days. I am trying to deploy my webpack nodejs app on AWS elastic beanstalk. The Environment Health changes from OK to Degraded. I have deployed...

AWS RDS / EC2: TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full

I'm attempting to retrieve a User model from a Node js 8.12.0 API, using knex and bookshelf ORM. Database is Postgres 10.4. The API works fine locally, but hosted on ElasticBeanstalk EC2 and RDS,...

Elastic Beanstalk not streaming to CloudWatch

I've had an Elastic Beanstalk instance streaming my logs to Cloud Watch for about a year. This week the logs stopped streaming. This may have been because I 'rebuilt' the environment in Beanstalk....

How to stream elastic beanstalk's custom log to Cloudwatch?

I set up a AWS elasticbeanstalk environment, and the platform is Tomcat. Now my requirement is to stream Tomcat log catalina.out to AWS Cloudwatch. By following official docs, I got the following...

How to solve (AccessDeniedException) when calling the Scan operation: User: arn:aws:sts... is not authorized to perform: dynamodb:Scan on resource.."?

I am trying to deploy an Instagram-like application to AWS using Elastic Beanstalk and Flask. After using eb deploy command, I am able to access the application main page, which does not requires...

Elastic Beanstalk Environment Variables Missing When In SSH

I'm trying to run some commands on my NodeJS app that need to be run via SSH (Sequelize seeding for instance), however when I do so, I noticed that the expected env vars were missing. If I run eb...

502 Bad Gateway Error in AWS ElasticBeanstalk while deploying Flask Application

I have created a Flask Application and deployed it in AWS ElasticBeanstalk. On accessing the EBS URL, I am getting the 502 Bad Gateway Error. nginx/1.16.1 On checking the error logs i see the...

How to stream tomcat catalinat.out logs to cloud watch?

I want to stream tomcat catalinat.out logs to cloud watch: This is my config I...

SpringBoot fails to deploy after adding .ebextensions for ngingx SSL -[An error occurred during execution of command [app-deploy]]

I have a SpringBoot app that deploys just fine to AWS Beanstalk, and the default nginx proxy works, allowing me to connect via port 80. Following the instructions here:...

Hooks in Elastic Beanstalk V3.0.1 (Amazon Linux 2) for configuration updates

As described in the AWS docs there are platform hooks for elastic beanstalk EBS for the deployment process: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html But...

AWS Elastic Beanstalk default CloudWatch log location for Java applications

I have deployed a JAR file in an AWS Elastic Beanstalk environment, using a load balancer and maximum 2 EC2 instances. My environment seems to be using the new unified CloudWatch agent, not the...

Logs not working on Elastic Beanstalk Tomcat environment

We've been using Elastic Beanstalk to run our Java (8) applications on Tomcat in our company without any issues. Now we have decided to move on to Java 11. We set up our environments with...

Terraform throwing error, "No valid credential sources found for AWS Provider" on Windows

I started learning Terraform. I am now trying to deploy an EC2 instance to the AWS following the tutorial. I am using Windows 10. I have configured the AWS credentials on my laptop and I have been...

elasticbeanstalk describe-application-versions returning empty

I have the following script that runs at the end of codebuild on AWS. It creates a new application version successfully and I want it to automatically update the environment to deploy the new...

AWS::WAFv2::WebACLAssociation ResourceArn for Application Load Balancer in CloudFormation

I have a CloudFormation template which creates an ElasticBeanstalk environment like this: "ApplicationEnvironment": { "Type": "AWS::ElasticBeanstalk::Environment", "Properties":...

AWS Beanstalk application cant deploy because Python version within awscli-bundle deployer too old

My AWS Elastic Beanstalk tomcat Java application that has been running quite happily for the last six months crashed yesterday, and when I try to redeploy using clone it fails Instance:...

AWS Elastic Beanstalk with docker-compose.yml

I am trying to deploy several services using AWS Elastic Beanstalk with Docker running on Amazon Linux 2 platform. Since, there are two services in my docker-compose.yml file: version:...