Extensions for AWS Elastic Beanstalk (as defined in the .ebextensions directory of an EB project)
Questions tagged [ebextensions]
131 questions
4
votes
1 answer
Http to Https AWS Elasticbeanstalk
I am using AWS Elasticbeanstalk for my Spring MVC web application. I want to redirect all the request to https. I tried following this How to force https on elastic beanstalk? but this didn't work for me. This code redirects to https but my app…

ponraj
- 738
- 1
- 7
- 21
4
votes
5 answers
How to Install PHP IMAP Extension on AWS Elastic Beanstalk Using Configuration Files (.ebextensions)?
Does anyone know how to install and enable PHP IMAP Extension on AWS Elastic Beanstalk using configuration files (.ebextensions)?
I'm using 64bit Amazon Linux 2017.03 v2.4.0 running PHP 7.0.16
I've tried several ways as follow:
1st Way
I've tried…

Manellen
- 331
- 1
- 5
- 14
4
votes
1 answer
AWS Elastic Beanstalk - EB Extensions Not Working
I've done this before a long time ago, but now it's not working... :)
I am trying to use EBExtensions in an ElasticBeanstalk application. I created a vanilla Elastic Beanstalk environment with no configuration beyond the defaults. I gave it an…

dsw88
- 4,400
- 8
- 37
- 50
4
votes
0 answers
aws elasticbeanstalk configurations
I recently discovered the ability for functions in ebextensions configs, but can't seem to figure out the syntax. Maybe what I'm trying to do is just not possible?
option_settings:
aws:elasticbeanstalk:application:environment:
SERVER_URL: {…

Mike-Marshall
- 76
- 7
4
votes
0 answers
Grant DefaultAppPool write permission to folders within wwwroot in EBS AWS
I've been trying to give the IIS APPPOOL\DefaultAppPool user write permissions to two folders under the wwwroot folder using the .ebextensions container_commands.
There are two scenarios that I need to cover:
Be able to grant the DefaultAppPool…

Starkadur
- 63
- 3
3
votes
1 answer
I am trying to install pdftk server on elastic bean stack using .ebextension configuration but not able to install
I am trying to install pdftk server on elastic bean stack using .ebextension configuration but not able to install.
I am trying the below config file in the .ebextension folder. Please help me
# Install PDFtk
01_wget_pdftk:
command: "sudo wget…

Ankur Shah
- 412
- 6
- 16
3
votes
1 answer
Elastic Beanstalk not creating ssl.conf
I am following the these instructions for enabling HTTPS on the EC2 instance managed by Elastic Beanstalk. I can see that Elastic Beanstalk creates the /etc/pki/tls/certs/server.crt & /etc/pki/tls/certs/server.key files. However, Elastic Beanstalk…

W Khattak
- 169
- 1
- 12
3
votes
2 answers
Run Packages Installation Commands on Amazon Linux 2 using EB Extensions
I'm running ASP.NET Core 3.1 Application on Elastic Beanstalk with Amazon Linux 2 EC2 instances. I need my app to be able to generate QR codes and for this I'm using QRCoder library. It worked on my Windows machine out of the box, but to make it…

twinmind
- 1,440
- 13
- 21
3
votes
1 answer
Setting a laravel storage directory permission by ebextentions
I'm working on elastic beanstalk exextentions. A storage-permission-denied error occurs every deployments and I a have to type command to resolve that. Does the code below(.extensions/chmod.config), prevent the error occur ?
container_commands:
…

grape100
- 341
- 4
- 11
3
votes
1 answer
Laravel on ElasticBeanstalk 'log file permission denied' error keeps coming up even the permission is set in the .ebextensions config file
I am deploying my Laravel application to the ElasticBeanstalk environment. But I am having issue with laravel.log file permissions.
I deployed my application using "eb deploy" command. After I deployed, I access my application. But it is throwing…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
3
votes
1 answer
Dynamically set the EC2 Instance Type per Environment using ebextensions
I want to create a EC2 instance type t3.medium on all environments and m5.large on production.
I'm using .ebextensions (YAML) like so:
option 1:
Mappings:
EnvironmentMap:
"production":
TheType: "m5.large"
SecurityGroup: "foo"
…

Vetras
- 1,609
- 22
- 40
3
votes
0 answers
Fn::GetOptionSetting is not working in AWS ElasticBeanstalk
I am trying to edit environment configuration "JVMOptions" using beanstalk environment properties(or variables).
option_settings:
- namespace: "aws:elasticbeanstalk:container:tomcat:jvmoptions"
option_name: "JVM Options"
value:…

Akhil Teej
- 61
- 6
3
votes
1 answer
warning: already initialized constant within config/routes.rb
I have the following class within config/routes.rb. When I deploy the application via Elastic Beanstalk with an .ebextensions file including a post-deploy script to start delayed_job I receive:
...
warning: already initialized constant…

Michael
- 6,561
- 5
- 38
- 55
3
votes
1 answer
Can I put a eb extension container command on multiple lines and if I can how?
All I've found about this is: https://forums.aws.amazon.com/thread.jspa?threadID=112988
I know that I can do this:
container_commands:
07_run_command:
"mkdir -p /var/cache/tomcat8/temp/.m2/repository && chmod 777"
But can I do…

Michael Wiles
- 20,902
- 18
- 71
- 101
3
votes
1 answer
EB: Trigger container commands / deploy scripts on configuration change
I am running my web server on Elastic Beanstalk, and using Papertrail for logging. I am using the official .ebextensions script to get papertrail set up during deployment, but I have a problem. I use environment variables as part of my hostname used…

JHH
- 8,567
- 8
- 47
- 91