Jump to content

Need an aws configuration files example


ajoo

Recommended Posts

Hi all !

 

I have been trying to automate some simple tasks using the configuration files. However, while i do not get any errors in my log files and the application is deployed successfully, the configuration files are not executed or so it seems ( else I would get an error if they failed).

 

Here is two files configuration files that I was just trying out. 

 

21_copy_xsendfile_conf.config:

files:
  "/home/ec2-user/21_copy_xsendfile_conf.sh":
    mode: "000750"
    owner: root
    group: root
    content: |
	  #!bin/bash
          cp scripts/activate_xsendfile.conf /etc/httpd/conf.d/ 

another version of the same as above ( since I was not sure which was correct ) :-

 

21_copy_xsendfile_conf.config:

files:
  "/home/ec2-user/21_copy_xsendfile_conf.sh":
    mode: "000750"
    owner: root
    group: root
    content: |
	  #!bin/bash
          cp scripts/activate_xsendfile.conf /etc/httpd/conf.d/ 

and then the 2nd config file to install the xsendfile module:

 

22_copy_to_conf.config:

container_commands:
  21_copy_to_conf:
    command: "/home/ec2-user/21_copy_xsendfile_conf.sh"

All the config files are placed in the .ebextensions folder. Both versions of the 1st file and the 2nd file seem not to work. I do not get any error either. 

 

I am assuming that the code in these files is correct since I do not get any error either. Please can someone point what the mistake or how i may go about it. 

 

The folder structure is      myprojects

                                              |-------- .ebextensions

                                                             |---------- .config files

                                              |--------- project

                                                             |----------index.php

                                              |---------scripts

                                                             |

                                                             |------ activate_xsendfile.conf

 

Thanks all !!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.