Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ym1085/terraform-for-ecs
AWS ECS and Code Series with terraform
https://github.com/ym1085/terraform-for-ecs
aws cicd ecs loadbalancer vpc
Last synced: 13 days ago
JSON representation
AWS ECS and Code Series with terraform
- Host: GitHub
- URL: https://github.com/ym1085/terraform-for-ecs
- Owner: ym1085
- Created: 2024-11-13T13:32:02.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-01-20T12:16:49.000Z (14 days ago)
- Last Synced: 2025-01-20T13:27:50.160Z (14 days ago)
- Topics: aws, cicd, ecs, loadbalancer, vpc
- Language: HCL
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform ECS
## Overview
이 프로젝트는 Terraform을 통해 AWS ECS(Elastic Container Service)를 설정하고 관리하기 위한 목적의 리포지토리입니다.
CI/CD의 경우 AWS Code Series를 사용하여, 자동화된 인프라 관리를 수행하려고 합니다.## Tech Spec
| Component | Version |
| ----------------------------- | ------- |
| Terraform | v1.9.7 |
| Provider (hashicorp/aws) | v4.67.0 |
| Provider (hashicorp/random) | v3.6.3 |
| Provider (hashicorp/template) | v2.2.0 |**Note:** Your version of Terraform is out of date! The latest version is **v1.10.4**.
You can update by downloading from [Terraform Downloads](https://www.terraform.io/downloads.html).## Project Structure
```shell
terraform-for-ECS
├── env/
│ ├── dev/
│ ├── prod/
├── modules/
│ ├── aws/
│ │ ├── compute/
│ │ │ ├── ecs/
│ │ │ │ ├── main.tf
│ │ │ │ ├── outputs.tf
│ │ │ │ ├── task_definitions.tpl
│ │ │ │ └── variables.tf
│ │ │ ├── eks/
│ │ │ │ ├── main.tf
│ │ │ │ ├── outputs.tf
│ │ │ │ └── variables.tf
│ │ ├── ecr/
│ │ ├── load_balancer/
│ │ ├── network/
│ │ ├── security/
│ │ ├── storage/
├── .gitignore
└── README.md
```## How to use this project?
```shell
cd env/dev
``````shell
terraform init
terraform validate
terraform plan
terraform apply
```## Terraform Visualization With Pluralith
### 01. Download Pluralith CLI
> [🗂️ Run Pluralith Locally](https://docs.pluralith.com/docs/get-started/run-locally)
- Pluralith CLI 설치
### 02. Pluralith Login
- pluralith login 수행
```shell
# Pluralith Account Settings의 API KEY를 아래 Login 커멘드 실행 시 변수로 넘긴다
$ pluralith login --api-key $PLURALITH_API_KEYparsing response failed -> GetGitHubRelease: %!w()
_
|_)| _ _ |._|_|_
| ||_|| (_||| | | |Welcome to Pluralith!
✔ API key is valid, you are authenticated! # API KEY 유효성 이상 x
```### 03. Pluralith Graph
- pluralith graph 수행
```shell
$ pluralith graphparsing response failed -> GetGitHubRelease: %!w()
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard→ Authentication
✔ API key is valid, you are authenticated!→ Plan
✔ Local Execution Plan Generated
✔ Local Plan Cache Created
✔ Secrets Stripped
- Cost Calculation Skipped→ Graph
✔ Local Diagram Generated
✔ Diagram Posted To Pluralith Dashboard→ Diagram Pushed To: https://app.pluralith.com/#/orgs/3xxxxxxxxxxx/projects/pluralith-local-project/runs/40xxxxxxxxxxx/
```