1
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?

クラウドエンジニアです

Last updated at Posted at 2025-05-16

はじめに

クラウドエンジニア志望として、Terraform × AWSの構成を実際に作成し、GitHubにポートフォリオとして公開しました。

本記事では、構築の目的/工夫した点/苦労した点/今後の展望をまとめます。


構築の目的

  • AWS×Terraformの構成スキルを証明したかった
  • モジュール化や状態管理、依存管理までカバーした構成を実現したかった
  • 「世界中どこでも働ける技術力」を目指し、アウトプットの第一歩にしたかった

使用技術・構成

カテゴリ 内容
IaC Terraform v1.7(lifecycle, depends_on, import 等)
クラウド AWS(VPC / EC2 / S3 / RDS / CloudWatch)
OS Linux (Ubuntu)
言語 HCL / Bash / Python(基本)
資格 AWS SAP / 基本情報 / LPIC-1

工夫したポイント

  • Terraformモジュールをリソースごとに分離
  • depends_onlifecycleで依存や再作成を制御
  • terraform.tfvarsvariable.tfで再利用性を確保
  • CloudWatchなど監視面まで網羅
  • .terraform.tfstateはLFS問題を避けて除外管理

詰まったポイント

  • GitHubへのpushで.terraformディレクトリによりLFS制限に引っかかった
  • .gitignore.gitattributesの調整に苦戦
  • 状態管理ファイルの扱いが一番大変だった(消す?残す?)

リポジトリはこちら

👉 GitHub - terraform-aws-portfolio


今後の展望

  • CloudFront付きS3静的サイトホスティング対応
  • CI/CD(GitHub Actions)との連携
  • セキュリティ設計の深掘り(IAM, KMSなど)

おわりに

読んでいただきありがとうございました。

どんな環境でも働ける力を目指して、構築→GitHub→発信まで自分の手で回せるようになってきました。

もし「こういう構成でよかったよ」などあればぜひコメントで教えてください!

📦 この構成のソースコードはこちら(GitHub)
👉 https://github.com/Kkasuga904/terraform-aws-portfolio

1
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
1
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?