Terraform variables
Following are variables listed in the vars.tf file. They can be changed to suit the needs of your cluster.
Resource |
Default |
Description |
---|---|---|
access_key |
Requires input |
AliCloud AccessKey. For details on creating an AccessKey, refer to the AliCloud article Create an AccessKey. |
secret_key |
Requires input |
AliCloud Secret key created with the AccessKey. Used to access the API. |
region |
us-east-1 |
The AliCloud Region. |
scale_in_threshold |
35 |
Default aggregate CPU threshold (percentage) to scale in (remove) 1 instance. |
scale_out_threshold |
70 |
Default aggregate CPU threshold (percentage) to scale out (add) 1 instance. |
alicloud_account |
AliCloud account number |
(datatype) |
cluster_name |
FortigateAutoScale |
Name of the cluster to be used across objects. |
bucket_name |
fortigateautoscale |
Name of the OSS bucket. Must be lowercase. |
instance_ami |
Requires input |
If specified, this will be the image used by the build. Otherwise, the script will obtain the latest FortiGate AMI. |
instance |
ecs.sn1ne |
The instance Family type to be used by the Auto Saling configuration. |
vpc_cidr |
172.16.0.0/16 |
VPC Classless Inter-Domain Routing (CIDR) block, it is divided into two /21 subnets. |
vswitch_cidr_1 |
172.16.0.0/21 |
First Vswitch located in zone A of the region. |
vswitch_cidr_2 |
172.16.8.0/21 |
Second Vswitch located in zone B of the region. |
table_store_instance_type |
Capacity |
Accepted values are HighPerformance or Capacity. |
Variables can also be referenced from the command line using:
terraform plan -var "<var name>=<value>"