LoginSignup
4

More than 5 years have passed since last update.

posted at

updated at

CloudFormationを使って開発・ステージング・本番環境を自動構築する

よければサンプルとしてお使い下さい (( ˘ω˘)/)

URL

以下をCloudFormationのStack作成時に指定する。
https://gist.github.com/Twinuma/f8d9dcd7c31743daf72e

構築内容説明

開発環境

  • Tokyoリージョンに作成
  • DMZ,TRUSTそれぞれMulti-AZに配備
  • RouteTableはinternet gateway用とvpc endpoint用を別途作成
  • security groupは、web,db,elbそれぞれ作成
  • webのsecuritygroupはhttp,sshのみ許可
  • dbはMYSQLをweb securitygroupがアサインされているインスタンスのみ許可
  • elbはhttpのみ許可
  • ELBも作成済み

ステージング環境・本番環境

  • Tokyoリージョンに作成
  • DMZ,TRUST,NATそれぞれMulti-AZに配備
  • RouteTableはinternet gateway用とvpc endpoint用、NAT用を別途作成
  • security groupは、web,db,elbそれぞれ作成
  • webのsecuritygroupはhttp,sshのみ許可
  • dbはMYSQLをweb securitygroupがアサインされているインスタンスのみ許可
  • elbはhttpのみ許可
  • ELBも作成済み

構成図

構成図.png

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
What you can do with signing up
4