@@ -27,11 +27,33 @@ Before using this module, ensure you have the following:
2727To use the module in your Terraform configuration, include the following source block:
2828
2929``` hcl
30+
31+ ##########################################
32+ ## ecs cluster with ec2
33+ ##########################################
3034module "arc-ecs" {
3135 source = "sourcefuse/arc-ecs/aws"
3236 version = "1.5.0"
33- # insert the 6 required variables here
37+ ecs_cluster = local.ecs_cluster
38+ capacity_provider = local.capacity_provider
39+ ecs_service = local.ecs_service
40+ launch_template = local.launch_template
41+ asg = local.asg
42+ tags = module.tags.tags
43+ }
44+
45+ ##########################################
46+ ## ecs cluster with fargate
47+ ##########################################
48+ module "ecs_cluster" {
49+ source = "sourcefuse/arc-ecs/aws"
50+ version = "1.5.0"
51+ ecs_cluster = local.ecs_cluster
52+ capacity_provider = local.capacity_provider
53+ ecs_service = local.ecs_service
54+ tags = module.tags.tags
3455}
56+
3557```
3658
3759Refer to the [ Terraform Registry] ( https://registry.terraform.io/modules/sourcefuse/arc-ecs/aws/latest ) for the latest version.
@@ -41,7 +63,7 @@ Refer to the [Terraform Registry](https://registry.terraform.io/modules/sourcefu
4163Integrate the module with your existing Terraform mono repo configuration, follow the steps below:
4264
43651 . Create a new folder in ` terraform/ ` named ` ecs ` .
44- 2 . Create the required files, see the [ examples] ( https://github.com/sourcefuse/terraform-aws-arc-ecs/tree/main/example ) to base off of.
66+ 2 . Create the required files, see the [ examples] ( https://github.com/sourcefuse/terraform-aws-arc-ecs/tree/main/examples ) to base off of.
45673 . Configure with your backend
4668 - Create the environment backend configuration file: ` config.<environment>.hcl `
4769 - ** region** : Where the backend resides
@@ -74,7 +96,7 @@ For a list of outputs, see the README [Outputs](https://github.com/sourcefuse/te
7496
7597### Basic Usage
7698
77- For basic usage, see the [ example] ( https://github.com/sourcefuse/terraform-aws-arc-ecs/tree/main/example ) folder.
99+ For basic usage, see the [ example] ( https://github.com/sourcefuse/terraform-aws-arc-ecs/tree/main/examples ) folder.
78100
79101This example will create:
80102
0 commit comments