Issue
I created a .ebextensions
directory in the root of my project and added a conf file to add a file to /etc/httpd/conf.d
but I don't see the results when I ssh to my instance. I've made two attempts:
(1) First Attempt
Following this AWS forum post, I created .ebextensions/update.conf
with this content:
files:
"/etc/httpd/conf.d/update.conf":
mode: "000644"
owner: root
group: root
encoding: plain
content: |
TraceEnable off
I ran the above through a YAML linter to make sure the format is correct.
(2) Second Attempt
Following the AWS docs, I created .ebextensions/httpd/conf.d/update.conf
with this content:
TraceEnable off
In both cases, the file update.conf
does not appear in the /etc/httpd/conf.d/
directory as desired.
To make sure that my configuration was properly uploaded, I downloaded the source zip file to make sure that my .ebextensions folder was included.
Any suggestions for what I might be doing wrong?
Solution
Your config file is named .ebextensions/update.conf
. But, according to Advanced Environment Customization with Configuration Files (.ebextensions), the file extension should be .config
:
Configuration files are YAML- or JSON-formatted documents with a .config file extension that you place in a folder named .ebextensions and deploy in your application source bundle.
Try renaming your config file to .ebextensions/update.config
.
Answered By - Max Smolens