Skip to content

Commit 5d3094a

Browse files
committed
Fix
1 parent 677beec commit 5d3094a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vpc/lab/m2/vpc-creation.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ New-EC2Tag -Tag $tag -Resource $subnet.SubnetId
8686
#Verify
8787
Get-EC2Subnet -SubnetId $subnet.SubnetId
8888

89-
90-
91-
#Create webtier VPC Internet gateway
89+
#Create web-vpc Internet gateway
9290
$igwName = "web-igw"
9391
$igw = New-EC2InternetGateway
9492
Add-EC2InternetGateway -InternetGatewayId $igw.InternetGatewayId -VpcId $vpc.VpcId
@@ -102,7 +100,6 @@ New-EC2Tag -Tag $tag -Resource $igw.InternetGatewayId
102100
#Verify
103101
$igw
104102

105-
106103
#Create a new route table for webtier-public subnet
107104
$routeTableName = "web-pub"
108105
#$routeTable = Create-RouteTable -vpc $vpc -routeTableName $routeTableName -subnet $subnet
@@ -168,7 +165,7 @@ $itype = "t2.micro"
168165
$eth0 = new-object Amazon.EC2.Model.InstanceNetworkInterfaceSpecification
169166
$eth0.NetworkInterfaceId = $eni.NetworkInterfaceId
170167
$eth0.DeviceIndex = 0
171-
$eth0.DeleteOnTermination = $true
168+
$eth0.DeleteOnTermination = $false
172169
$www1 = New-EC2Instance -ImageId $ami -KeyName $keyname -InstanceType $itype -NetworkInterface $eth0
173170

174171
#Test SSH

0 commit comments

Comments
 (0)