@@ -27,11 +27,33 @@ Before using this module, ensure you have the following:
27
27
To use the module in your Terraform configuration, include the following source block:
28
28
29
29
``` hcl
30
+
31
+ ##########################################
32
+ ## ecs cluster with ec2
33
+ ##########################################
30
34
module "arc-ecs" {
31
35
source = "sourcefuse/arc-ecs/aws"
32
36
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
34
55
}
56
+
35
57
```
36
58
37
59
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
41
63
Integrate the module with your existing Terraform mono repo configuration, follow the steps below:
42
64
43
65
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.
45
67
3 . Configure with your backend
46
68
- Create the environment backend configuration file: ` config.<environment>.hcl `
47
69
- ** region** : Where the backend resides
@@ -74,7 +96,7 @@ For a list of outputs, see the README [Outputs](https://github.com/sourcefuse/te
74
96
75
97
### Basic Usage
76
98
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.
78
100
79
101
This example will create:
80
102
0 commit comments