classic-load-balance

aliyun/classic-load-balance/alicloud

Terraform Module HCL ALICLOUD

Terraform module which creates classic load balance application architecture on Alibaba Cloud.

Install
module "classic-load-balance" {
source = "aliyun/classic-load-balance/alicloud"
version = "3.0.2"
}
plain text: /constructs/tfmod-aliyun-classic-load-balance-alicloud/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (49)
NameTypeDescriptionDefault
slb_internet_namestringThe SLB internet instance name used to create a new Internet SLB instance. Defau""
bucket_namestringThe OSS bucket name. If not set, this module will generate a random name with pr""
internet_charge_typestringThe internet charge type of instance. Choices are 'PayByTraffic' and 'PayByBandw"PayByTraffic"
number_formatstringThe number format used to output."%02d"
group_namestringThe security group name. Default to variable `this_module_name`.""
rds_database_name_prefixstringThe rds database name prefix used to create two new database in the RDS instance"tf_db_"
slb_intranet_namestringThe SLB intranet instance name used to create a new Intraner SLB instance. Defau""
availability_zoneslist(string)The available zone to launch ecs instance and other resources.[]
web_instance_cpunumberCPU core count is used to fetch instance types for launching web instances.2
web_instance_memorynumberMemory size used to fetch instance types for launching web instances.4
system_categorystringThe system disk category used to launch one or more ecs instances."cloud_efficiency"
slb_max_bandwidthnumberThe maximum internet out bandwidth of slb instance.10
app_instance_memorynumberMemory size used to fetch instance types for launching app instances.4
vswitch_cidrslist(string)List of cidr blocks used to create several new vswitches when variable `vswitch_[ "10.1.2.0/24", "10.1.3.0/24" ]
periodnumberThe period of instance when instance charge type is 'PrePaid'.1
period_unitstringThe period unit of instance when instance charge type is 'PrePaid'."Month"
number_of_web_instancesnumberThe number of launching web instances one time.2
rds_account_passwordstringThe rds account password."Abc12345"
image_idstringThe image id used to launch one or more ecs instances. Default from images datas""
instance_charge_typestringThe charge type of instance. Choices are 'PostPaid' and 'PrePaid'."PostPaid"
… and 9 more inputs
Outputs (50)
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.
… and 20 more outputs
Resources (14)
alicloud_db_databasealicloud_db_instancealicloud_instancealicloud_oss_bucketalicloud_oss_bucket_aclalicloud_rds_accountalicloud_security_groupalicloud_security_group_rulealicloud_slb_attachmentalicloud_slb_listeneralicloud_slb_load_balanceralicloud_vpcalicloud_vswitchrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.2
Cloud ALICLOUD
★ Stars2
Forks14
Total downloads877
Inputs49
Outputs50
Resources14
Examples1
LicenseMIT
Namespacealiyun
Updated