LoginSignup
1
0

More than 5 years have passed since last update.

CloudFormationでVPCを作るだけ

Posted at

CloudFormationでVPCを作るだけ

  • VPCが出来る
  • VPCはサブネットを一つ持っている
  • IPv6は無効化
  • 個人的な趣向によりタグを定義している
AWSTemplateFormatVersion: 2010-09-09
Resources:
  EC2VPC3RXEF:
    Type: 'AWS::EC2::VPC'
    Properties:
      CidrBlock: 10.0.0.0/16
      EnableDnsSupport: false
      EnableDnsHostnames: false
      InstanceTenancy: default
      Tags:
        -
          Key: Project
          Value: Mastodon
  EC2S4A90T:
    Type: 'AWS::EC2::Subnet'
    Properties:
      CidrBlock: 10.0.0.0/24
      MapPublicIpOnLaunch: false
      VpcId: !Ref EC2VPC3RXEF
      Tags:
        -
          Key: Project
          Value: Mastodon
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