0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

cloudformationを半分用いて、codecommit、codebuildを用いたfargateのCICDシステムの構築

0
Last updated at Posted at 2023-06-20

やること

タイトルの通り

対象者

codecommit、codebuild、cloudformationを実際にハンズオンで試したい人
作業中のエラーログとその解決策を知りたい人

できるであろうもの

image.png

構成図

image.png

ALB経由でレスポンスを返却するfargateのターゲットグループ

注意

どっちかというと、この通り作業すればできるタイプの記事ではなく、
作業前に目を通しておけば、つまりが少なくなるタイプの記事

使用したリソース

(記事中のリソースの全てがこのrepository)
https://github.com/tamae1111/ecs-poc

作業の流れ

作業1

git直下のREADMEを読み、ディレクトリ構造をざっくり理解する

.
├── Dockerfile
├── README
├── README_other
│   ├── README_DEBUG_DOCKERFILE_TIPS.md
│   ├── README_ERROR_LOG.md
│   ├── README_FOR_Qiita.md
│   └── README_SETTING_NAMES.md
├── buildspec.yml 
├── cloudformation
│   ├── archived
│   │   ├── ecr01.yml
│   │   ├── ecs-fargate-01.yml
│   │   ├── except-ecs-01.yml
│   │   ├── resources-except-ecs-service01.yml
│   │   └── sample-ecs_resources_inference.yml
│   └── vpc-01.yml
└── scripts # 使用するのはsimple_serverは以下のみ
    ├── inference
    │   ├── inference.py
    │   └── requirements.txt
    ├── sample
    │   ├── requirements.txt
    │   └── sample.py
    └── simple_server
        ├── index.html
        ├── requirements.txt
        └── simple_server.py

作業2

README_otherディレクトリのドキュメントを読み、作業の勘所、詰まりそうなところをあらかじめつかむ

作業3

以下yamlでcloudformationのスタックを作成する

作業4

に従って作業する

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?