# terraform-cloudj-ecsinstance **Repository Path**: brianchenl/terraform-cloudj-ecsinstance ## Basic Information - **Project Name**: terraform-cloudj-ecsinstance - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-04-16 - **Last Updated**: 2023-07-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README terraform-alicloud-ecs-instance 模块 ===================================================================== **本 module 使用 registry.cloudiac.org ,调用时请保持一致** 本 Module 包含以下功能: * 创建阿里云[ecs instance](https://www.alibabacloud.com/help/zh/elastic-compute-service/latest/instance-overview)资源 * vpc、vsw、sg、kp均使用查询获得 * 包含ansible_groups初始化 * 通过eip_count配置可以增加公网IP,默认只有私网。 * 通过bandwidth_out配置可以指定公网 ## 用法 ```hcl module "none" { source = "registry.cloudiac.org/Brian/ecs-instance/alicloud" for_each = toset(var.instance_name) # 应用名称 instance_name = each.value # 可用区域 availability_zone = var.availability_zone # 机器类型 instance_type = var.instance_type # 机器镜像id image_id = var.image_id # 系统盘容量 disk_size = var.disk_size # ssh链接机器公钥名称 key_name = var.key_name # 资源组id resource_group_name = var.resource_group_name } ``` ## 示例 * [ECS 实例完整创建示例创建示例](https://gitee.com/brianchenl/terraform-alicloud-ecs-instance/tree/master/examples/basic) ## Terraform 版本 | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13.0 | | [alicloud](#requirement\_alicloud) | >= 1.162.0 | | [ansible](#requirement\_ansible) | >= 1.0.4 | | [cloudIaC](#requirement\_cloudiac) | >= 0.10.0 |