You can use Terraform to create Elastic Compute Service (ECS) clusters and deploy applications in Enterprise Distributed Application Service (EDAS), bind Server Load Balancer (SLB) to the applications, create application groups, and scale out the applications. This topic provides information about available interfaces and a configuration example.
Interface description
Data Sources
- alicloud_edas_applications: EDAS application data sources, including ECS applications and Container Service for Kubernetes (ACK) applications in EDAS.
- alicloud_edas_clusters: EDAS cluster data sources, including ECS clusters and ACK clusters in EDAS.
- alicloud_edas_deploy_groups: EDAS deploy groups data sources, which are the application groups of ECS applications in EDAS.
Resources
- alicloud_edas_application: ECS application resource in EDAS.
- alicloud_edas_application_deployment: deploys an ECS application in EDAS.
- alicloud_edas_application_scale: scales out an ECS application in EDAS.
- alicloud_edas_cluster: ECS cluster resource in EDAS.
- alicloud_edas_deploy_group: the resource of an ECS application group in EDAS.
- alicloud_edas_instance_cluster_attachment: scales out an ECS instance in an ECS cluster in EDAS.
- alicloud_edas_slb_attachment: binds SLB to an ECS application in EDAS.
EDAS ECS Module
Configuration example
In the following example, an application is deployed in an ECS cluster in EDAS. Modify configuration parameters as needed.