Terraform modules for deploying Fortinet VM products (e.g. FortiGate VM) on AliCloud.
Folder modules contains reusable modules for AliCloud configurations (Subfolder alicloud) and Fortinet VM products (Other subfolders).
-
This module can be used to deploy any Fortinet VM: FortiGate / FortiManager / FortiAnalyzer
- Create a new folder for your project.
- Create file "providers.tf", specify the provider version and region, for instance:
terraform {
required_version = ">=1.0, < 2.0.0"
required_providers {
alicloud = {
source = "aliyun/alicloud"
version = "~> 1.0"
}
}
}
provider "alicloud" {
region = "<YOUR ALICLOUD REGION>" # Or leave it blank and use environment variable "ALIBABA_CLOUD_REGION"
access_key = "<YOUR ALICLOUD ACCESS KEY>" # Or leave it blank and use environment variable "ALIBABA_CLOUD_ACCESS_KEY_ID"
secret_key = "<YOUR ALICLOUD SECRET KEY>" # Or leave it blank and use environment variable "ALIBABA_CLOUD_ACCESS_KEY_SECRET"
}
- Create file "main.tf", specify the source to the target module, for instance:
"fortinetdev/cloud-modules/alicloud//modules/fortinet/generic_vm_standalone". Provide your own values for necessary parameters of the module.
module "your_module_name" {
source = "fortinetdev/cloud-modules/alicloud//modules/<module_name>"
<Specify module variables>
}
- Execute the commands
terraform initandterraform apply.
If there is a missing feature or a bug -- open an issue
License © Fortinet Technologies. All rights reserved.