Skip to content

Commit e76450e

Browse files
author
vijay-stephen
committed
Merge pull request #73 from sourcefuse/ecs-service
Adding an EC2 instance type to the ECS module
1 parent 341b679 commit e76450e

File tree

1 file changed

+25
-3
lines changed
  • docs/arc-iac-docs/modules/terraform-aws-arc-ecs/docs/module-usage-guide

1 file changed

+25
-3
lines changed

docs/arc-iac-docs/modules/terraform-aws-arc-ecs/docs/module-usage-guide/README.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,33 @@ Before using this module, ensure you have the following:
2727
To use the module in your Terraform configuration, include the following source block:
2828

2929
```hcl
30+
31+
##########################################
32+
## ecs cluster with ec2
33+
##########################################
3034
module "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

3759
Refer 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
4163
Integrate the module with your existing Terraform mono repo configuration, follow the steps below:
4264

4365
1. 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.
4567
3. 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

79101
This example will create:
80102

0 commit comments

Comments
 (0)