Hey there!
Have you tried using the files command on .ebextension? Something like this:
files
files: /etc/nginx/conf.d/proxy.conf: mode: "000644" owner: root group: root content: | upstream nodejs { server 127.0.0.1:5000; keepalive 256; } server { listen 8080; if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2})") { set $year $1; set $month $2; set $day $3; set $hour $4; } access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd; access_log /var/log/nginx/access.log main; location / { proxy_pass http://nodejs; proxy_set_header Connection ""; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } gzip on; gzip_comp_level 4; gzip_types text/html text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; location /static { alias /var/app/current/static; } } /opt/elasticbeanstalk/hooks/configdeploy/post/99_kill_default_nginx.sh: mode: "000755" owner: root group: root content: | #!/bin/bash -xe rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf service nginx stop service nginx start container_commands: removeconfig: command: "rm -f /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf"
It's documented here. It's another way to add custom files to your instances when deploying new versions.
Hello friend, Thanks for your help. My problem was hierarchy.
Once take back .ebextension to main root directory the problem was resolved.
Yeeeei! I'm glad you worked it out.
I might as well add that reminder of the root directory to the post.
Thanks a lot for getting back here!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey there!
Have you tried using the
files
command on .ebextension? Something like this:It's documented here. It's another way to add custom files to your instances when deploying new versions.
Hello friend,
Thanks for your help. My problem was hierarchy.
Once take back .ebextension to main root directory the problem was resolved.
Yeeeei! I'm glad you worked it out.
I might as well add that reminder of the root directory to the post.
Thanks a lot for getting back here!