File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ New-EC2Tag -Tag $tag -Resource $subnet.SubnetId
8686# Verify
8787Get-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
9492Add-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
You can’t perform that action at this time.
0 commit comments