33 votes

Elastic Beanstalk stuck for more than 12 hrs

If you know how to fix the source of problem (for example: change application settings in Beanstalk Environment variables or deploy fixed version of your application), then: Go to page Auto Scaling ...
26 votes
Accepted

AWS ELB "sorry, site is down" page

The simple and cool solution here is to put your ELB behind CloudFront. If the origin server (the ELB in this case) throws a 5XX error (or 4XX if you like), CloudFront can return a custom error page, ...
18 votes
Accepted

How to increase the timeout of Elastic Beanstalk deployments?

You can add AWS Elastic Beanstalk configuration files (.ebextensions) to your web application's source code to configure your environment and customize the AWS resources that it contains. The ...
17 votes
Accepted

AWS Route 53 Pricing

All prices below are current as of 26th June 2017 and may change. Q1: Route53 is a DNS service, not a domain registration service. To host DNS with Amazon, there is a flat fee of $0.50 per month, or $...
  • 9,430
16 votes

Static IP address for outgoing traffic from AWS autoscaling group

I understand this is an old thread - for someone who has a similar use-case now, AWS nat-gateway would be a better solution.
15 votes

AWS: Environment named *** is in an invalid state for this operation. Must be Ready

Usually, there's no way to recover from an invalid state for a given environment. In such cases, you need to go to the current environment page, click on the Actions button, select Clone Environment,...
  • 301
13 votes

Launch instances via Elastic Beanstalk without Elastic IP configured

When using the environment type "Single instance", you always get an EIP. From Beanstalk developer guide, Environment Types: A single-instance environment contains one Amazon EC2 instance with an ...
13 votes
Accepted

Are Elastic Beanstalk's environment variables an appropriate place to store secret values?

The point of keeping secrets out of source code is so they don't go into source control. This is particularly useful in open source projects. When deployed, it doesn't matter if the secret's in a file ...
12 votes

Elastic Beanstalk S3 access via .ebextensions

I've figured it out and I feel a little bit silly for not picking this up sooner. So for anyone that uses AWS::CloudFormation::Authentication path, the solution of course is: Make sure your BUCKET ...
  • 343
12 votes
Accepted

Can I use the new free SSL/TLS AWS certificates without ELB or Beanstalk on plain EC2?

Q: Can I use certificates on Amazon EC2 instances or on my own servers? No. At this time, certificates provided by ACM can only be used with specific AWS services. Q: With which AWS ...
12 votes
Accepted

Can AWS Certificate Manager (ACM) Certificates be used on Elastic Load Balancer Instances in Regions other than us-east-1?

Not as of now, no. The answer to the question is slightly hidden, under an entirely different question in the ACM FAQ: Q: Can I use the same certificate in more than one AWS Region? It ...
12 votes

How to make laravel queue work in aws beanstalk?

Using Linux AMI 2 (recommended) Since the first post the eb roadmap announced that the PHP platform had been updated making things much easier. Below the .ebextensions configuration files and the ....
  • 221
11 votes

ElasticBeanstalk: Set instance type and security group from config file

You should be able to use what you have in that config file for the launchconfiguration namespace, but you need the single quotes around the namespace and value like you have in the first 2 that are ...
  • 111
11 votes

Elastic Beanstalk force https

It is also possible to do that somewhat more easily, without touching the load balancer, by using the X-Forwarded-Proto header set by ELB. Here is what I ended up doing : files: "/etc/nginx/sites-...
  • 241
11 votes
Accepted

How do I get yarn installed on elastic beanstalk?

You can customize packages that are installed and commands that are run on deploy with .ebextensions For yarn, I created a file with the following commands which install a recent node version and ...
11 votes
Accepted

How can I use a static IP address with an Application Load Balancer in a highly available manner?

There is currently only one way to associate static IP addresses with Application Load Balancer (ALB) -- AWS Global Accelerator. Static Anycast IPs – Global Accelerator uses Static IP addresses ...
10 votes

Does elastic beanstalk run the postinstall from a package.json file?

I've just come across this problem too. I found that a postinstall script would not run but a prestart would. Mine looks like this: "scripts": { "start": "node index.js", "prestart": "node ...
  • 201
10 votes
Accepted

My AWS SSL Certificate is not appearing in Elastic Beanstalk's console

The answer was rather silly. A little gotcha: I didn't notice that I'd changed my region when I created the SSL Certificate, so the ELB and the certificate regions didn't match. I deleted the cert, ...
9 votes
Accepted

aws elasticbeanstalk with static public ip

You can use Elastic Beanstalk along with a VPC for your scenario. Use a VPC with public and private subnets. Add a NAT to a public subnet and give it an Elastic IP address. Ensure all traffic from ...
  • 9,804
9 votes
Accepted

Elastic Beanstalk force https

I think you need to specify what Elastic Beanstalk environment that you use (see: Supported Platforms), because different environment has different configuration. Basically, you need to customize: ...
9 votes

AWS: Environment named *** is in an invalid state for this operation. Must be Ready

I solved this problem by going to Elastic Beanstack, my app was GRAY status/health, from the app overview I accessed the Actions button and Aborted the current operation. Then I got the health ...
8 votes
Accepted

Job Control/background process (using ampersand) in .ebextensions config commands

In order to make this work I had to run the command from a file using the post deployment hooks commands: create_post_dir: command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post" ...
8 votes
Accepted

Switch regions on EB CLI

Yes. When you run eb init it should only ask you for the things it doesn't know. Running it a second time should do nothing. Therefore I am presuming you are running eb init -i which forces all the ...
  • 336
8 votes
Accepted

Is there any difference between load balancer url and the elastic beanstalk url?

Your Elastic Beanstalk URL points to the Elastic Load Balancer URL. This is intentional. It is better to create a DNS CNAME pointing to your Elastic Beanstalk URL rather than the ELB URL. The reason ...
  • 9,804
8 votes

How is Elastic Beanstalk forwarding traffic on port 80 to my app at port 8080 without nginx/apache?

It's a NAT rule. iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination REDIRECT tcp -- anywhere anywhere tcp ...
  • 293
8 votes
Accepted

Is there a supported way to run post-deploy scripts on AWS Elastic Beanstalk?

It's 2019 and I still couldn't find any documentation for Beanstalk Platform Hooks regarding .NET apps. I ended up doing something similar to your solution. Create a config file in .ebextensions ...
8 votes
Accepted

AWS: Target.FailedHealthChecks - Site always in "severe" state

It seems the error was caused by a Heath Check for the Application Load Balancer, not the Elastic Beanstalk application. The ALB needs its target changing in a different place (see the documentation). ...
8 votes
Accepted

How to see what is my Amazon rds password

You can't. For security reasons they set it up so that, if you lose the password, the only way to recover is to either guess what it was or to reset it. If this is done properly there is no way for ...
  • 836
8 votes
Accepted

Using Nginx to Block Connections that aren't addressed to my domain

It seems like your only virtual host is the one with default_server attribute. It means that if no matching virtual host is found, that block is used to serve the request. To properly handle your case,...
7 votes

Static IP address for outgoing traffic from AWS autoscaling group

I don't have enough reputation to comment on the above answers, but I wanted to add some information you will need to know if using a NAT gateway to achieve this. When you create a NAT gateway, you ...

Only top scored, non community-wiki answers of a minimum length are eligible