classic-load-balance
aliyun/classic-load-balance/alicloud
Terraform module which creates classic load balance application architecture on Alibaba Cloud.
Alicloud Classic Load Balance Architecture Terraform Module terraform-alicloud-classic-load-balance ===================================================================== A terraform module to provide classic load balance architecture in alibaba cloud. !image ---------------------- Usage You can use this in your terraform template with the following steps. 1. Adding a module resource to your template, e.g. main.tf ``hcl module "classic-load-balance" { source = "aliyun/classic-load-balance/alicloud" vpc_name = "my-new-vpc" vswitch_cidrs = ["10.1.2.0/24", "10.1.3.0/24"] system_category = "cloud_ssd" system_size = "100" slb_max_bandwidth = "50" } output "web_url" { value = module.classic-load-balance.web_url } ` 2. Setting access_key and secret_key values through environment variables: - ALICL
| Name | Type | Description | Default |
|---|---|---|---|
| slb_internet_name | string | The SLB internet instance name used to create a new Internet SLB instance. Defau | "" |
| bucket_name | string | The OSS bucket name. If not set, this module will generate a random name with pr | "" |
| internet_charge_type | string | The internet charge type of instance. Choices are 'PayByTraffic' and 'PayByBandw | "PayByTraffic" |
| number_format | string | The number format used to output. | "%02d" |
| group_name | string | The security group name. Default to variable `this_module_name`. | "" |
| rds_database_name_prefix | string | The rds database name prefix used to create two new database in the RDS instance | "tf_db_" |
| slb_intranet_name | string | The SLB intranet instance name used to create a new Intraner SLB instance. Defau | "" |
| availability_zones | list(string) | The available zone to launch ecs instance and other resources. | [] |
| web_instance_cpu | number | CPU core count is used to fetch instance types for launching web instances. | 2 |
| web_instance_memory | number | Memory size used to fetch instance types for launching web instances. | 4 |
| system_category | string | The system disk category used to launch one or more ecs instances. | "cloud_efficiency" |
| slb_max_bandwidth | number | The maximum internet out bandwidth of slb instance. | 10 |
| app_instance_memory | number | Memory size used to fetch instance types for launching app instances. | 4 |
| vswitch_cidrs | list(string) | List of cidr blocks used to create several new vswitches when variable `vswitch_ | [
"10.1.2.0/24",
"10.1.3.0/24"
] |
| period | number | The period of instance when instance charge type is 'PrePaid'. | 1 |
| period_unit | string | The period unit of instance when instance charge type is 'PrePaid'. | "Month" |
| number_of_web_instances | number | The number of launching web instances one time. | 2 |
| rds_account_password | string | The rds account password. | "Abc12345" |
| image_id | string | The image id used to launch one or more ecs instances. Default from images datas | "" |
| instance_charge_type | string | The charge type of instance. Choices are 'PostPaid' and 'PrePaid'. | "PostPaid" |
| … and 9 more inputs | |||
this_vswitch_cidrs — The CIDR block of the VSwitches.this_web_image_id — The image ID of the web instance.this_app_instance_type — The instance type of the application instance.this_web_ecs_password — The password of the web instance.number_of_app_instances — The number of application instances.this_slb_intranet_ip — The intranet SLB ip address.this_slb_internet_ip — The internet SLB ip address.this_app_system_size — The system size of the application instance.this_app_instance_name — The instance name of the application instance.this_app_instance_charge_type — The instance charge type of the application instance.this_engine_version — The engine version of the RDS instance.this_slb_intranet_name — The intranet SLB instance name.this_module_name — The name of this module.this_app_instance_ids — List ID of the application instances in the specified VPC.this_slb_intranet_id — The intranet SLB instance ID.this_rds_master_id — The RDS master instance ID.this_vpc_name — The name of the VPC.this_app_ecs_password — The password of the application instance.this_web_instance_charge_type — The instance charge type of the web instance.this_web_instance_tags — The instance tags of the web instance.this_web_instance_ids — List ID of the web instances in the specified VPC.this_rds_master_account_name — The RDS master account name.this_rds_master_database_id — The RDS master database id.this_security_group_name — The name of the Security Group.this_app_image_id — The image ID of the application instance.this_web_system_size — The system size of the web instance.this_app_instance_tags — The instance tags of the application instance.number_of_rds_instances — The number of RDS instances.this_web_system_category — The system category of the web instance.this_web_host_name — The host name of the web instance.