Extensions for AWS Elastic Beanstalk (as defined in the .ebextensions directory of an EB project)
Questions tagged [ebextensions]
131 questions
1
vote
1 answer
.ebextensions not updating php.ini configuration
in my .ebextensions folder I have "project.config"
files:
"/etc/php.d/project.ini" :
mode: "000644"
owner: root
group: root
content: |
upload_max_filesize=64M
post_max_size=64M
The whitespace is all spaces (not…

John Christian
- 85
- 4
1
vote
1 answer
Elastic Beanstalk .ebextentsion - how to make it default to TLSv1.2
Linux 2 for Elastic Beanstalk written in Java
Below is my .platform/nginx/conf.d/https.conf file. When I run this, my Load Balancer defaults to ELBSecurityPolicy-2016-08. I only want ELBSecurityPolicy-TLS-1-2-2017-01 selected when I do this. …

Andy P
- 109
- 8
1
vote
1 answer
AWS Elastic Beanstalk Python (3.8) platform: run additional pip command for a Python package with `--no-deps` flag aside from using `requirements.txt`
There's this Python package called aiopg for working with the PostgreSQL database asynchronously. It has two dependencies - async-timeout and psycopg2-binary. I don't want it to install psycopg2-binary when using pip because I use the regular…

Sergey Zakharov
- 1,493
- 3
- 21
- 40
1
vote
1 answer
EFS symlink fails while deploying
So I use AWS Elastic Beanstalk to serve my PHP application. I want to mount EFS to have permanent storage for the images uploaded via my application.
I have created .ebextensions folder and created one file called mount.config with the below…

magnetarneo
- 71
- 7
1
vote
1 answer
Configuring static files settings for Docker on Amazon Linux 2 ends with the error
When doing any kind of attempts for aws:elasticbeanstalk:environment:proxy:staticfiles it just doesn't work. Every time I receive errors about invalid option specification. All the rest of ebextensions settings work like a charm.
Example snippet…

Remigiusz Orłowski
- 58
- 3
1
vote
1 answer
Run elastic beanstalk .ebextensions config for specific environments
I have the following config
0_logdna.config
commands:
01_install_logdna:
command: "/home/ec2-user/logdna.sh"
02_restart_logdna:
command: "service logdna-agent restart"
files:
"/home/ec2-user/logdna.sh" :
mode: "000777"
owner:…

Kingsley Simon
- 2,090
- 5
- 38
- 84
1
vote
0 answers
NodeJS app with ebextensions not deployed to Beanstalk via Jenkins job
I have a sample Hello World app in NodeJS which's sourcecode in GitHub. The sourcecode is pushed to the AWS Beanstalk environment whenever a new commit happens via a Jenkins job. The sourcecode consists of an .ebextensions folder an inside that,…

Sandun
- 395
- 2
- 10
- 25
1
vote
1 answer
How do you run container commands on ElasticBeanstalk / Amazon Linux 2?
I currently have a Laravel application running on ElasticBeanstalk with the following file running a deployment command for me...
.ebextensions/deployment-commands.config
container_commands:
01-run-migrations:
command: "php artisan…

fylzero
- 460
- 6
- 18
1
vote
2 answers
Installing memcached on Amazon Linux
I am trying to use memcached for PHP on a Amazon Linux EC2 instance. In my PHP script when I call $mc = new Memcached(); the following error gets thrown in /var/log/php-fpm/www-error.log:
[06-Sep-2020 00:49:44 UTC] PHP Fatal error: Uncaught Error:…

qwertytam
- 133
- 9
1
vote
1 answer
How do I prevent my Elastic Beanstalk app from showing as unhealthy if my post deploy takes a long time?
I my .ebextensions/00.command.config, I have:
container_commands:
00_download_models:
command: "./download.py"
In download.py, I have some code that downloads a lot of files (around 20GB). That takes time and I'd like that to finish before…

Shamoon
- 41,293
- 91
- 306
- 570
1
vote
2 answers
Installing pip package through .ebextensions
I am having trouble installing the package psycopg2 through ebextensions.
00_software.config
packages:
yum:
git: []
htop: []
pip:
psycopg2: []
01_setup_pg_activity.config
commands:
clone:
command: git clone…

NooBskie
- 3,761
- 31
- 51
1
vote
1 answer
AWS Elastic Beanstalk .ebextensions not updating the default configuration
I have a memory disk issue in my Elastic Beanstalk instance due to the log rotation so I am trying to modify the default configuration for log rotation by following the…

Jose Antonio
- 578
- 1
- 8
- 34
1
vote
1 answer
Copy file from .ebextentions folder
I want to file from .ebextentions/td-agent.conf to /etc/td-agent/td-agent.conf. But its not working and getting below error.
if you see attached image, there are 3 files in .ebextentions. I had put copy command in 01-main.config.
---…

Jaishree Mishra
- 545
- 2
- 5
- 24
1
vote
1 answer
Why are ElasticBeanstalk .ebextensions ignored when using AWSJavaScriptSDK?
When using the AWS JavaScript SDK to update an ElasticBeanstalk environment my .ebextensions/* are being ignored. I'm uploading the application source bundle as a .zip file to S3, which triggers a Lambda to deploy a new application version using…

o1y
- 31
- 4
1
vote
1 answer
Add executable to Windows PATH from .ebextensions and then call executable in subsequent command
I have a Windows Elastic Beanstalk instance. I have the following commands.config in my project's .ebextensions
commands:
00-install-choco:
command: |
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object…

Display name
- 1,109
- 1
- 15
- 31