This folder contains more advanced Terraform modules for deploying complex AVS Landing Zone capabilities. It is expected that users will have a strong understanding of Terraform concepts and will make any necessary modifications to fit their environment when using these modules. AVS Landing Zone concepts can be explored in more detail via the official documentation page.
This folder is laid out hierarchically so that different levels of modules may be used as needed for your purpose. A summary of each level of the folder structure follows.
Folder Name | Description |
---|---|
modules | This folder contains re-usable modules that create infrastructure components that are used to compose more complex scenarios |
scenarios | This folder contains individual network and/or operational scenario root modules that are composed of modules from the modules directory. |
samples | This folder will contain lab or other complete implementation samples that implement one or more scenarios. |
- Clone this repository onto the machine that will be used for development. (Prerequisite: Ensure Terraform is installed and setup on your build machine prior to completing the next steps. It is not recommended to use cloud shell for AVS deployments as they are long running and the cloud shell may timeout prior to completion requiring the use of terraform import to sync the remote state.)
- Modify the
*.tfvars.sample
file to define values configured as variables within the module and remove the .sample extension if using this module as a root module. (Note: To simplify naming, locals are used within most modules for resource name definitions and are configured to use a prefix value with a randomly generated suffix for uniqueness. If custom naming is required then you will need to modify the locals in your module code.) - If using a module in a custom module you can also copy the modules being used into that modules Terraform implementation.
- Before deploying, confirm the correct subscription is selected using the following command:
az account show
-
Change directory to the root Terraform module folder for your deployement
-
Run
terraform init
to initialize this directory -
Run
terraform plan
to view the planned deployment -
Run
terraform apply
to confirm the deployment
Private cloud deployment takes around 3-4 hours. Once the deployment has completed it is important to check that the deployment succeeded & the AVS Private Cloud status is "Succeeded". If the Private Cloud fails to deploy, you may need to raise a support ticket.