I am working on a deploying a docker image through CodePipeline to Elastic Beanstalk that is using an Elastic Load Balancer.
I have the following file structure:
- .ebextensions
- nginx
- conf.d
- elasticbeanstalk
- nginx-config.conf
- elasticbeanstalk
- conf.d
- nginx
Inside the file is modifications such as:
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
types_hash_max_size 2048;
client_body_buffer_size 2000M;
I noticed my configurations were not sticking. When I connect to the instance created by elasticbeanstalk, my /etc/nginx/conf.d/elasticbeanstalk/
does not contain any of the configuration files.
My questions are: 1) Whys is my .ebextensions being ignored? 2) Is there another way of modifying the nginx config?
Btw, both my Dockerrun.aws.json and buildspec.yml are executing.