The page has been translated by Gen AI.
VPC
Basic network configuration (VPC, Subnet, Internet Gateway, Public IP)
Configure the basic network. Create VPC, Subnet, Internet Gateway, and Public IP in order.
- There are no parameters that require input, and all parameters have default values.
- You can enter multiple IP ranges for the VPC in VpcCidr. Separate multiple entries with commas (,).
- Subnet is created as a Private type.
- PublicIpZone’s default value is an example value. Modify to the zone that matches the region you are using.
- The Public IP is set with
DependsOnso that it is created after the Internet Gateway.
Color mode
SCPTemplateFormatVersion: '2026-01-01'
Description: 'VPC, Subnet, Internet Gateway, Public IP template'
Parameters:
VpcName:
Type: String
Default: 'sample-vpc'
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z0-9-]*$'
Description: 'Enter the VPC name.' (3~20 characters, only English letters, numbers, and hyphens allowed)
VpcCidr:
Type: CommaDelimitedList
Default: '10.0.0.0/16'
Description: 'Enter the VPC's IP range (CIDR). Separate multiple entries with commas. (prefix length /16 ~ /24)
SubnetName:
Type: String
Default: 'sample-subnet'
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z0-9-]*$'
Description: 'Enter the Subnet name.' (3~20 characters, only English letters, numbers, and hyphens allowed)
SubnetCidr:
Type: String
Default: '10.0.1.0/24'
Description: 'Enter the Subnet's IP range (CIDR). (within the VPC CIDR range)
PublicIpZone:
Type: String
Default: 'kr-west1-a'
Description: 'Enter the zone where the Public IP will be created. (e.g., kr-west1-a. ※ Example value - modify to the zone appropriate for the region)
Resources:
Vpc:
Type: SCP::VPC::Vpc
Properties:
Name: !Ref VpcName
Cidrs: !Ref VpcCidr
Subnet:
Type: SCP::VPC::Subnet
Properties:
Name: !Ref SubnetName
VpcId: !Ref Vpc
Cidr: !Ref SubnetCidr
Type: PRIVATE
Category: PRIMARY
Description: 'Sample Resource Deployment Private Subnet'
InternetGateway:
Type: SCP::VPC::InternetGateway
Properties:
Type: IGW
VpcId: !Ref Vpc
Description: 'Internet Gateway for external internet access'
PublicIp:
Type: SCP::VPC::PublicIp
DependsOn: InternetGateway
Properties:
Type: IGW
Zone: !Ref PublicIpZone
Description: 'Sample Public IP for resources'
Outputs:
VpcId:
Description: 'The ID of the created VPC.'
Value: !Ref Vpc
SubnetId:
Description: 'The ID of the created Subnet.'
Value: !Ref Subnet
InternetGatewayId:
Description: 'The ID of the created Internet Gateway.'
Value: !Ref InternetGateway
PublicIpId:
Description: 'The ID of the generated Public IP.'
Value: !Ref PublicIpSCPTemplateFormatVersion: '2026-01-01'
Description: 'VPC, Subnet, Internet Gateway, Public IP template'
Parameters:
VpcName:
Type: String
Default: 'sample-vpc'
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z0-9-]*$'
Description: 'Enter the VPC name.' (3~20 characters, only English letters, numbers, and hyphens allowed)
VpcCidr:
Type: CommaDelimitedList
Default: '10.0.0.0/16'
Description: 'Enter the VPC's IP range (CIDR). Separate multiple entries with commas. (prefix length /16 ~ /24)
SubnetName:
Type: String
Default: 'sample-subnet'
MinLength: 3
MaxLength: 20
AllowedPattern: '^[a-zA-Z0-9-]*$'
Description: 'Enter the Subnet name.' (3~20 characters, only English letters, numbers, and hyphens allowed)
SubnetCidr:
Type: String
Default: '10.0.1.0/24'
Description: 'Enter the Subnet's IP range (CIDR). (within the VPC CIDR range)
PublicIpZone:
Type: String
Default: 'kr-west1-a'
Description: 'Enter the zone where the Public IP will be created. (e.g., kr-west1-a. ※ Example value - modify to the zone appropriate for the region)
Resources:
Vpc:
Type: SCP::VPC::Vpc
Properties:
Name: !Ref VpcName
Cidrs: !Ref VpcCidr
Subnet:
Type: SCP::VPC::Subnet
Properties:
Name: !Ref SubnetName
VpcId: !Ref Vpc
Cidr: !Ref SubnetCidr
Type: PRIVATE
Category: PRIMARY
Description: 'Sample Resource Deployment Private Subnet'
InternetGateway:
Type: SCP::VPC::InternetGateway
Properties:
Type: IGW
VpcId: !Ref Vpc
Description: 'Internet Gateway for external internet access'
PublicIp:
Type: SCP::VPC::PublicIp
DependsOn: InternetGateway
Properties:
Type: IGW
Zone: !Ref PublicIpZone
Description: 'Sample Public IP for resources'
Outputs:
VpcId:
Description: 'The ID of the created VPC.'
Value: !Ref Vpc
SubnetId:
Description: 'The ID of the created Subnet.'
Value: !Ref Subnet
InternetGatewayId:
Description: 'The ID of the created Internet Gateway.'
Value: !Ref InternetGateway
PublicIpId:
Description: 'The ID of the generated Public IP.'
Value: !Ref PublicIp