Skip to content

Commit d103820

Browse files
author
Arunsai14
committed
Merge pull request #76 from sourcefuse/feat/readme-update
Update README and architecture diagram
1 parent 66b8329 commit d103820

1 file changed

Lines changed: 51 additions & 8 deletions

File tree

  • docs/arc-iac-docs/modules/terraform-aws-arc-ecs

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

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
![Module Structure](./static/ecs-banner.png)
1+
![Module Banner](./static/ecs-banner.png)
22

33
# [terraform-aws-arc-ecs](https://github.com/sourcefuse/terraform-aws-arc-ecs)
44

5-
<a href="https://github.com/sourcefuse/terraform-aws-arc-ecs/releases/latest"><img src="https://img.shields.io/github/release/sourcefuse/terraform-aws-arc-ecs.svg?style=for-the-badge" alt="Latest Release"/></a> <a href="https://github.com/sourcefuse/terraform-aws-arc-ecs/commits"><img src="https://img.shields.io/github/last-commit/sourcefuse/terraform-aws-arc-ecs.svg?style=for-the-badge" alt="Last Updated"/></a> ![Terraform](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white) ![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
5+
> **Module:** `sourcefuse/arc-ecs/aws`
66
7-
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=sourcefuse_terraform-aws-arc-ecs)](https://sonarcloud.io/summary/new_code?id=sourcefuse_terraform-aws-arc-ecs)
7+
> **Registry:** [https://registry.terraform.io/modules/sourcefuse/arc-ecs/aws](https://registry.terraform.io/modules/sourcefuse/arc-ecs/aws)
8+
9+
> **Category:** Containers / ECS
10+
11+
12+
13+
> **Source:** [https://github.com/sourcefuse/terraform-aws-arc-ecs](https://github.com/sourcefuse/terraform-aws-arc-ecs)
14+
15+
[![Latest Release](https://img.shields.io/github/release/sourcefuse/terraform-aws-arc-ecs.svg?style=for-the-badge)](https://github.com/sourcefuse/terraform-aws-arc-ecs/releases/latest)
16+
[![Last Updated](https://img.shields.io/github/last-commit/sourcefuse/terraform-aws-arc-ecs.svg?style=for-the-badge)](https://github.com/sourcefuse/terraform-aws-arc-ecs/commits)
17+
![Terraform](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white)
18+
![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
19+
20+
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=sourcefuse_terraform-aws-arc-ecs&token=470128924743a0aace992ff0eb4f2460199e267f)](https://sonarcloud.io/summary/new_code?id=sourcefuse_terraform-aws-arc-ecs)
821

9-
[![Known Vulnerabilities](https://github.com/sourcefuse/terraform-aws-arc-ecs/actions/workflows/snyk.yaml/badge.svg)](https://github.com/sourcefuse/terraform-aws-arc-ecs/actions/workflows/snyk.yaml)
1022
## Overview
1123

1224
SourceFuse's AWS Reference Architecture Terraform module leverages the terraform-aws-modules/terraform-aws-ecs GitHub repository to facilitate the deployment and management of an AWS ECS (Elastic Container Service) cluster. It streamlines the configuration of ECS tasks, services, and related components, providing a scalable and efficient solution for orchestrating containerized applications. With customizable settings for logging and load balancing the module promotes seamless deployment and management of containerized workloads on AWS.
@@ -36,8 +48,20 @@ Before using this module, ensure you have the following:
3648
- Network
3749

3850

39-
## Getting Started
51+
## What It Does
52+
53+
- ECS cluster with Fargate and/or EC2 capacity providers
54+
- ECS service with task definition management
55+
- ALB/NLB target group wiring
56+
- Service auto-scaling with target tracking
57+
- CloudWatch log groups for container logs
58+
- IAM task execution and task roles
59+
- Support for multiple services per cluster
60+
61+
For more information about this repository and its usage, please see [Terraform AWS ECS Usage Guide](https://github.com/sourcefuse/terraform-aws-arc-ecs/blob/main/docs/module-usage-guide/README.md).
4062

63+
64+
## Quickstart
4165
1. **Define the Module**
4266

4367
Initially, it's essential to define a Terraform module, which is organized as a distinct directory encompassing Terraform configuration files. Within this module directory, input variables and output values must be defined in the variables.tf and outputs.tf files, respectively. The following illustrates an example directory structure:
@@ -57,7 +81,6 @@ Inside the `variables.tf` or in `*.tfvars` file, you should define values for th
5781
3. **Use the Module in Your Main Configuration**
5882
In your main Terraform configuration file (e.g., main.tf), you can use the module. Specify the source of the module, and version, For Example
5983

60-
6184
```hcl
6285
################################################################################
6386
## ecs cluster
@@ -94,6 +117,22 @@ module "ecs_services" {
94117
}
95118
```
96119

120+
## Required Inputs
121+
122+
| Name | Type | Description |
123+
|------|------|-------------|
124+
| `ecs_cluster` | `object` | ECS cluster configuration |
125+
| `tags` | `map(string)` | Resource tags |
126+
## Key Outputs
127+
128+
| Name | Description |
129+
|------|-------------|
130+
| `cluster_id` | ECS cluster ID |
131+
| `cluster_arn` | ECS cluster ARN |
132+
| `cluster_name` | ECS cluster name |
133+
## Full Variable & Output Reference
134+
135+
The complete inputs/outputs reference is auto-generated below.
97136
4. **Output Values**
98137

99138
Inside the `outputs.tf` file of the module, you can define output values that can be referenced in the main configuration. For example:
@@ -119,7 +158,6 @@ terraform apply
119158
6. **Review and Confirm**
120159

121160
Terraform will display a plan showing the changes it intends to make. Review the plan and confirm by typing 'yes' when prompted.
122-
123161
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
124162
## Requirements
125163

@@ -213,7 +251,12 @@ By specifying this , it will bump the version and if you don't specify this in y
213251
go test -timeout 30m
214252
```
215253

254+
255+
## Contributing
256+
257+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for commit conventions and development setup.
258+
216259
## Authors
217260

218261
This project is authored by:
219-
- SourceFuse ARC Team
262+
- SourceFuse ARC Team

0 commit comments

Comments
 (0)