LoginSignup
0
0

More than 3 years have passed since last update.

AWS CDK で VPC を作成する指示をした時に自動で作成されるリソース一覧

Posted at

概要

AWS CDK(Typescript) で、以下のようなコードを書いたときに実際に生成されるリソースを確認した。

new ec2.Vpc(this, 'CdkStudyVpc', {
  cidr: "10.1.0.0/16"
})

作成されたリソース

  • Internet Gateway x 1
  • Subnet x 6
    • Public Subnet x 3
      • 10.1.0.0/19
      • 10.1.32.0/19
      • 10.1.64.0/19
    • Private Subnet x 3
      • 10.1.96.0/19
      • 10.1.128.0/19
      • 10.1.160.0/19
  • NAT Gateway x 3
    • 3つのプライベートサブネット用
  • EIP x 3
    • ↑の NAT Gateway 用
  • Route Table x 6
    • Private Subnet 用が3つ
      • デフォルトルートは↑で作成した各NAT Gateway に向く
    • Public Subnet 用が3つ
      • デフォルトルートは↑で作成した Internet Gateway に向く
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