Add a new site
Create a new directory
In the project folder root, create a new diretory called site_<site-name>
:
Tip
Replace <site-name>
with your new site name!
Configure the new site
Add the new site to site_inception
variables file
Add <site-name>
to the following file, in inception_projects = []
line:
Add the new site to Terrabutler settings
Add <site-name>
to the following file, in sites: ordered: - <site-name>
line:
Add a new variable file to the Variables Folder
Create a new file called <project-name>-<env>-<site-name>.tfvars
to the following directory:
Perform an apply in site_inception
Run the following command, to update the new configuration on site_inception
:
Add files to the new site
Add terraform files
Run the following commands to copy the following Terraform files to the site_<site-name>
:
Create Symbolic Links
Run the following commands to create the Symbolic Links:
Perform an init in the new site
Run the following command: