Skip to content

Commit 595808b

Browse files
committed
change instance type and ami
1 parent fa2916a commit 595808b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

elb/lab-setup.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
$AWSProfileName="aws-networking-deep-dive-elb"
1111
$AWSRegion = "us-east-1"
1212
# Set your IP subnet for SSH access
13-
$myIP = "24.96.154.171/32"
13+
$myIP = "24.96.0.0/16"
1414
# Set the AMI image (change this if you change the region)
15-
$ami = "ami-c710e7bd" # aws-elasticbeanstalk-amzn-2017.03.1.x86_64-ecs-hvm-201709251832
15+
$ami = "ami-00d1bccc04cb4ae98" # aws-elasticbeanstalk-amz\n-2018.03.0.x86_64-ecs-hvm-202103271420
1616
# Set the name of your SSH keypair
1717
$keyname = "ccnetkeypair"
1818

@@ -117,7 +117,7 @@ Grant-EC2SecurityGroupIngress -GroupId $appsg -IpPermissions @( $appip, $appsip,
117117
Grant-EC2SecurityGroupIngress -GroupId $dbsg -IpPermissions @( $dbip, $sship )
118118

119119
# Create web instances
120-
$itype = "t2.nano"
120+
$itype = "t3.nano"
121121

122122
$web1 = New-EC2Instance -ImageId $ami -KeyName $keyname -InstanceType $itype -SubnetId $web1a.SubnetId -SecurityGroupId $websg -AssociatePublicIp $true -PrivateIpAddress "172.31.1.21"
123123
$web2 = New-EC2Instance -ImageId $ami -KeyName $keyname -InstanceType $itype -SubnetId $web1b.SubnetId -SecurityGroupId $websg -AssociatePublicIp $true -PrivateIpAddress "172.31.2.22"
@@ -139,3 +139,8 @@ New-NameTag -name "app3" -resourceID $app3.Instances.InstanceId
139139
# Create db instance
140140
$db = New-EC2Instance -ImageId $ami -KeyName $keyname -InstanceType $itype -SubnetId $app1a.SubnetId -SecurityGroupId $dbsg -AssociatePublicIp $true -PrivateIpAddress "172.31.101.99"
141141
New-NameTag -name "db" -resourceID $db.Instances.InstanceId
142+
143+
Start-Sleep 3
144+
145+
# View instances
146+
(Get-EC2Instance -Filter $filter_reservation).Instances

0 commit comments

Comments
 (0)