Question: I am working on a drupal website that has a theme installed to it.

I would like to set the Front/Home page of the website to a .html.twig template I have in a custom module I am busy working on.

How would I go about doing this? I have done some googling and it likes like the answer lies somewhere with page--front.html.twig, but I am not sure where to go from here.

Inside my themeFolder/templates there are page--front.html.twig & page.html.twig

I have tried creating my own page--front.html.twig and storing it inside myModule/templates but this did not help me.

Also, how would I go about applying .html.twig templates to different regions of my website?

Any advice would be greatly appreciated

Answer: 
An issue to add an overwrite option is open on [GitHub](https://github.com/aws/aws-codedeploy-agent/issues/14) and it has been there for quite a while. I solved this by adding a custom script in the BeforeInstallation hook which will erase all existing files before copying over my new deployment. 

This is how my appspec.yml file looks like

```
version: 0.0
os: linux
files:
  - source: /
    destination: /path/to/destination
hooks:
  BeforeInstall:
    - location: DeploymentScripts/CleanupScript.sh
  AfterInstall:
    - location: DeploymentScripts/InstallScript.sh
      timeout: 600
  ApplicationStart:
    - location: DeploymentScripts/RestartScript.sh
      timeout: 3600

```
You can pass this attribute in the appspec.yml under

files :
 overwrite: true