Skip to content

Commit

Permalink
Quartz sync: Nov 12, 2024, 6:35 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaking committed Nov 12, 2024
1 parent 549cab2 commit df85878
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
64 changes: 64 additions & 0 deletions content/thoughts/ECS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
tags:
---
- [nodeアプリケーションをECSデプロイするまでの道のり docker / ECR / ECS設定](https://zenn.dev/nitaking/scraps/346356f59547a0)

---

## Terraform で ECS

y-ohgi先生による [Terraformで構築するAWS](https://y-ohgi.com/introduction-terraform/) によりTerraformの理解が進んだ。

### Terraform とは
Infrastructure as Codeのツール
構成を宣言的に記述することによってコードによるインフラ管理でき、属人化を防ぐ。
コード管理により、インフラのバージョン管理ができ、コードを見ることで現構成を把握することができる。
https://y-ohgi.com/introduction-terraform/first/about/

### Terraform実行環境
https://y-ohgi.com/introduction-terraform/first/preparation/

### Command

```bash
# terraform init

# terraform plan

# terraform apply
```

### ECS
https://y-ohgi.com/introduction-terraform/handson/ecs/

## Terraform 0.11 -> 0.14

https://www.terraform.io/upgrade-guides/0-13.html

```bash
# docker run v0.12
terraform init
terraform 0.12upgrade

# docker run v0.13
terraform init
terraform 0.13upgrade
terraform plan
# Error修正

# docker run v0.14
terraform plan
```

## Terraform directory structur
https://qiita.com/anfangd/items/1b84f69fa2a4f8a29fbc

https://dev.classmethod.jp/articles/directory-layout-bestpractice-in-terraform/

## 複数サブネットを一度に作る
https://zenn.dev/shonansurvivors/articles/5424c50f5fd13d

## Examples
https://github.com/duduribeiro/terraform_ecs_fargate_example

https://gitlab.com/jevans3/terraform-aws-multi-az-subnets/-/tree/master
3 changes: 3 additions & 0 deletions content/thoughts/Fly.io.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
tags:
- SaaS
- paas
aliases:
- fly
- flyio
---

- 公式Doc: https://fly.io/
Expand Down

0 comments on commit df85878

Please sign in to comment.