Sitemap
Shoaib Ahmed

Shoaib Ahmed

Shoaib Ahmed, a Computer Science graduate passionate about AWS, DevOps, and simplifying tech for beginners. Exploring cloud and hands-on projects

aws devops

--

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step 2

  1. In the top navigation bar search box, type:ec2
  2. In the search results, under Services, click EC2.
  3. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click AMI Catalog.
  2. Go to the next step.
Press enter or click to view image in full size

Step4

  1. In the AMIs search box, type:sql and press Enter.
  2. On the Quick Start AMIs tab, review the available AMIs on Amazon EC2.
  • Depending on your requirements, you can find AMIs provided directly by AWS, through trusted third-parties in the AWS Marketplace, or through the AWS community.

3.Go to the next step.

Press enter or click to view image in full size

Step5
In the top navigation bar search box, type:database

In the search results, click Show more.
Go to the next step.

Press enter or click to view image in full size

Step6

  1. Review the list of available database options.
  2. Click Aurora and RDS.
  3. Go to the next step.
Press enter or click to view image in full size

Step7

  1. In the left navigation pane, click Databases.
  2. On the Databases page, click Create database.
  3. In the pop-up box, choose Full configuration.
  4. Go to the next step.
Press enter or click to view image in full size

Step8

  1. For Choose a database creation method, choose Full configuration.
  2. For Engine type, choose MariaDB.
  3. Go to the next step.
Press enter or click to view image in full size

Step9

  1. For Templates, choose or keep Dev/Test.
  2. For Engine version, on the dropdown list, keep the provided default MariaDB version.
  • The default version in your practice lab might be different from what is displayed in the screenshot example.
  1. For DB instance identifier, type: my-database
  • Except hyphens, no other special characters are supported in the DB instance identifier.
  1. Go to the next step.
Press enter or click to view image in full size

Step10

  1. Under Credential settings, for Master username, keep the default choice of admin.
  2. For Credentials management, choose Self managed.
  3. For Master password, type: ILoveLearning!123
  4. For Confirm master password, type the password again.
  5. Go to the next step.
Press enter or click to view image in full size

Step11

  1. In the Instance configuration section, for DB instance class, choose Burstable classes.
  2. Below that, on the dropdown list, choose db.t3.xlarge.
  • Only t3 db classes are supported in this practice lab.
  1. For Storage type, choose General Purpose SSD (gp3).
  2. For Allocated storage, type: 20
  3. Go to the next step.
Press enter or click to view image in full size

Step12

  1. Click to expand Additional storage configuration.
  2. For Storage autoscaling, keep or choose the default of Enable storage autoscaling.
  3. For Maximum storage threshold, keep or choose the default of 1000 GiB.
  4. For Multi-AZ deployment, choose Create a standby instance.
  5. Go to the next step.
Press enter or click to view image in full size

Step13

  1. For Virtual private cloud (VPC), keep the Default VPC.
  2. For DB subnet group, keep the default.
  3. For Public access, keep the default choice of No.
  4. For VPC security group (firewall), keep the default choice of Choose existing.
  5. Go to the next step.
Press enter or click to view image in full size

Step14

  1. For Monitoring, choose Database Insights — Standard.
  2. Clear the checkbox to deselect Collect detailed database and per-query metrics.
  • If this feature is enabled, you’ll get a permissions error when you try to create the database.
  1. Go to the next step.
Press enter or click to view image in full size

Step15

  1. Click to expand Additional monitoring settings.
  2. For Enhanced Monitoring, clear the checkbox to deselect Enable Enhanced monitoring.
  • If this feature is enabled, you’ll get a permissions error when you try to create the database.
  1. Go to the next step.
Press enter or click to view image in full size

Step16

  1. Click to expand Additional configuration.
  2. For Initial database name, type:

my_database

  • Notice that the database name can be different than the db instance name configured earlier.
  1. For DB parameter group and Option group, review the default options.
  2. For Backup, review the default options.
  3. Go to the next step.
Press enter or click to view image in full size

Step17

  1. For Encryption, review the default encryption options.
  2. For Maintenance, clear the checkbox to deselect Enable auto minor version upgrade.
  3. For Maintenance window, keep the default choice of No preference.
  4. Scroll down to the bottom of the page, and then click Create database (not shown).
  • If any pop-up boxes appear (offering add-ons), close them.
  • The RDS DB instance takes 5–10 minutes to be created.
  1. Go to the next step.
Press enter or click to view image in full size

Step18

  1. After the database is created, wait 5–10 additional minutes, and then click the Databases refresh icon.
  • After the database is created, the status displays Modifying.
  1. Under Status, review to confirm that the status is now Available.
  • If the status hasn’t changed to Available, continue to click the refresh icon every few minutes until it does.
  1. Click my-database.
  2. Go to the next step.
Press enter or click to view image in full size

Step19

  1. In the Summary section, under DB identifier, review the identifier.
  2. Click Actions to expand the dropdown list.
  3. Review the different options.
  • You must return to these options, such as Create read replica, in the upcoming DIY section of this solution.
  1. Go to the next step.
Press enter or click to view image in full size

Step20

  1. In the top navigation bar search box, type:

dms

  1. In the search results, under Services, click Database Migration Service.
  2. Go to the next step.
Press enter or click to view image in full size

Step21

  1. In the left navigation pane, click Getting started.
  2. Go to the next step.
Press enter or click to view image in full size

Step22

  1. For How you can use DMS, choose Discover and assess.
  2. Below that, review the description.
  3. Repeat for the other option.
  • The other option is: “Migrate or replicate”.
  1. Go to the next step.
Press enter or click to view image in full size

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires

Step2

  1. In the top navigation bar search box, type:

dynamodb

  1. In the search results, under Services, click DynamoDB.
  2. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click Tables.
  2. In the Tables section, click Create table.
  3. Go to the next step.
Press enter or click to view image in full size

Step4

  1. For Table name, type:

UserVideoHistory

  1. For Partition key, in the left text box, type:

userId

  • Keys are case sensitive. You must type the partition key exactly as shown — userId with an uppercase I.
  1. On the right dropdown list, choose String.
  • String is the data type.
  1. For Sort key, in the left text box, type:

lastDateWatched

  1. On the right dropdown list, choose Number.
  2. For Table settings, choose Default settings.
  3. Scroll down to the bottom of the page, and then click Create table (not shown).
  4. Go to the next step.
Press enter or click to view image in full size

Step5

  1. For the UserVideoHistory table, under Status, review to confirm that the status is Active.
  • If not, wait for the status to change.
  1. When active, click the table name.
  2. Go to the next step.
Press enter or click to view image in full size

Step6

  1. Click Actions to expand the dropdown list.
  2. Choose Create item.
  3. Go to the next step.
Press enter or click to view image in full size

Step7

  1. For userId, under Value, type:

12345-abcd-6789

  1. For lastDateWatched, under Value, type:

1740086439

  • This is a UNIX timestamp.
  1. Go to the next step.
Press enter or click to view image in full size

Step8

  1. Click Add new attribute to expand the dropdown list.
  2. Choose String.
  3. Go to the next step.
Press enter or click to view image in full size

Step9

  1. For the new attribute, under Attribute name, type:

videoId

  • Make sure to type the attribute name exactly, with an uppercase I in Id.
  1. Under Value, type:

9875-djac-1859

  1. Go to the next step.
Press enter or click to view image in full size

Step10

  1. Click Add new attribute.
  2. Choose String.
  3. Go to the next step.
Press enter or click to view image in full size

Step11

  1. For the new attribute, under Attribute name, type:

preferredLanguage

  1. Under Value, type:

en-US

  1. Go to the next step.
Press enter or click to view image in full size

Step12

  1. Click Add new attribute.
  2. Choose List.
  3. Go to the next step.
Press enter or click to view image in full size

Step13

  1. For the new attribute, under Attribute name, type:

supportedDeviceTypes

  1. Go to the next step.
Press enter or click to view image in full size

Step14

  1. Under Value, click Insert a field to expand the menu.
  2. Choose String.
  3. Go to the next step.
Press enter or click to view image in full size

Step15

  1. In the new text box, type:

Amazon Fire TV

  1. Click Insert a field.
  2. Choose String.
  3. Go to the next step.
Press enter or click to view image in full size

Step16

  1. In the new text box, type:

Amazon Fire Tablet

  1. Click Create item.
  2. Go to the next step.
Press enter or click to view image in full size

Step17

  1. In the Items returned section, under userId, click 12345-abcd-6789.
  • You can now edit the record again.
  1. Go to the next step.
Press enter or click to view image in full size

Step18

  1. Click Add new attribute.
  2. Choose Number.
  3. Go to the next step.
Press enter or click to view image in full size

Step19

  1. For the new attribute, under Attribute name, type:

lastStopTime

  1. Under Value, type: 90
  • The lastStopTime attribute stores video viewing duration in seconds (as a Number type). You can use this value to implement video resume functionality.
  1. Click Save and close.
  2. Go to the next step.
Press enter or click to view image in full size

Step20

  1. Click to expand Scan or query items.
  2. Choose Query.
  3. For userId (Partition key), type:

12345-abcd-6789

  1. For lastDateWatched (Sort Key), choose Greater than.
  2. Next to that, in the text box, type:

1740086438

  1. Click Run.
  2. Go to the next step.
Press enter or click to view image in full size

Step21

  1. In the Items returned section, review the returned record.
  2. Go to the next step.
Press enter or click to view image in full size

Step22

  1. To change the query criteria, for userId, type:

abd5-zxcg-12385

  1. Click Run.
  2. In the Items returned section, review the results.
  • Nothing is returned because no record matches the partition key.
  1. Go to the next step.
Press enter or click to view image in full size

Step23

  1. For Scan or query items, choose Scan.
  2. Click Run.
  3. In the Items returned section, review the results.
  • All items in your DynamoDB table should be listed.
  1. Go to the next step.
Press enter or click to view image in full size

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step2

  1. In the top navigation bar search box, type:ec2
  2. In the search results, under Services, click EC2.
  3. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click Instances.
  2. In the Instances section, review the names of the three available instances.
  3. To review all of the instance details, scroll to the right.
  4. Go to the next step.
Press enter or click to view image in full size

Step4

  1. Under Availability Zone, review the AZ for each instance.
  2. In the left navigation pane, under Network & Security, click Security Groups.
  3. Go to the next step.
Press enter or click to view image in full size

Step5

  1. In the Security Groups section, review the Web_Server_SG security group.
  • The webserver security group is already linked to the web servers.
  1. Click Create security group.
  2. Go to the next step.
Press enter or click to view image in full size

Step6

  1. For Security group name, type:

PetModels-EFS-1-SG

  1. For Description, type:

Restrict access to web servers only.

  1. For VPC, on the dropdown list, choose the PetModels VPC.
  • You might need to remove the existing VPC by clicking the X.
  1. In the Inbound rules section, click Add rule.
  2. Go to the next step.
Press enter or click to view image in full size

Step7

  1. To configure the new rule, for Type, choose NFS.
  2. Under Source, click to expand the dropdown list.
  3. Choose the webserver security group.
  4. Scroll down to the bottom of the page, and then click Create security group (not shown).
  5. Go to the next step.
Press enter or click to view image in full size

Step8

  1. Under Security group name, review the name.
  2. On the Inbound rules tab, review the newly created rule.
  3. Go to the next step.
Press enter or click to view image in full size

Step9

  1. In the top navigation bar search box, type:fsx
  2. In the search results, under Services, click FSx.
  3. Go to the next step.
Press enter or click to view image in full size

Step10

  1. On the Amazon FSx console home page, review the information and descriptions.
  2. Go to the next step.
Press enter or click to view image in full size

Step11

  1. In the top navigation bar search box, type:

efs

  1. In the search results, under Services, click EFS.
  2. Go to the next step.
Press enter or click to view image in full size

Step12

  1. On the Amazon EFS console home page, click Create file system.
  2. Go to the next step.
Press enter or click to view image in full size

Step13

  1. In the pop-up box, for Name, type:

PetModels-EFS-1

  1. For Virtual Private Cloud (VPC), choose the PetModels VPC.
  2. Click Customize.
  3. Go to the next step.
Press enter or click to view image in full size

Step14

  1. In the File system settings step, for File system type, review the types.
  2. For Automatic backups, clear the checkbox to deselect Enable automatic backups.
  3. Go to the next step.
Press enter or click to view image in full size

Step15

  1. Under Lifecycle management, for Transition into Infrequent Access (IA), choose None.
  • The Infrequent Access storage class is designed for storing long-lived, infrequently accessed files in a cost-effective manner.
  1. For Transition into Archive, choose None.
  • The Archive storage class is designed for data that is accessed very infrequently — only a few times per year or less.
  1. Go to the next step.
Press enter or click to view image in full size

Step16

  1. In the Performance settings section, for Throughput mode, choose Bursting.
  2. Click Next.
  3. Go to the next step.
Press enter or click to view image in full size

Step17

  1. In the Network access step, under Mount targets, to remove the subnet for AZ us-east-1c, click Remove.
  2. To remove the subnet for AZ us-east-1b, click Remove.
  3. To remove the security group for AZ us-east-1a, under Security groups, click the X in the displayed security group.
  4. Go to the next step.
Press enter or click to view image in full size

Step18

  1. For AZ us-east-1a, under Security group, choose the PetModels-EFS-1-SG security group.
  2. Click Next.
  3. Go to the next step.
Press enter or click to view image in full size

Step19

  1. In the File system policy step, click Next.
  2. Go to the next step.
Press enter or click to view image in full size

Step20

  1. In the Review and create step, at the bottom of the page, click Create.
  2. Go to the next step.
Press enter or click to view image in full size

Step21

  1. In the success alert, review the message.
  • If an iam:CreateServiceLinkedRole error alert appears, you can safely ignore it.
  1. Under File system ID, review the provided ID.
  • You must use this ID in the later DIY section of this solution.
  1. Click the file system name PetModels-EFS-1.
  2. Go to the next step.
Press enter or click to view image in full size

Step22

  1. Under File system state, review to confirm that the state is Available.
  • If the status is not Available, wait a minute and then refresh the page.
  1. Click Attach.
  2. Go to the next step.
Press enter or click to view image in full size

Step23

  1. In the pop-up box, keep the default choice of Mount via DNS.
  2. Under Using the EFS mount helper, click the copy icon to copy the mount command, and then paste it in the text editor of your choice on your device.
  • You use this command in later steps.
  1. Click Close.
  2. Go to the next step.
Press enter or click to view image in full size

Step24

  1. Navigate to the Amazon EC2 console.
  • Remember you can use the Services search box (or click Services) on the top navigation bar to navigate to a different service console.
  1. In the left navigation pane, click Instances.
  2. In the Instances section, choose the checkbox to select WebServer1.
  3. Click Connect.
  4. Go to the next step.
Press enter or click to view image in full size

Step25

  1. In the In web browser tab, choose SSM Session Manager.
  2. Click Connect.
  • The Session Manager terminal opens in a new browser tab (or window). Keep the current browser tab open. You return to it.
  1. Go to the next step.
Press enter or click to view image in full size

distributions.

Step26

  1. In the terminal, at the command prompt, run (type the command and press Enter):

sudo -i

  1. In the terminal, run:

sudo yum install -y amazon-efs-utils

  • You can also copy-paste this text. If you receive an undefined value when you paste this, try again.
  1. Go to the next step.
Press enter or click to view image in full size

Step27

  1. Review the packages installed from the previous yum command.
  2. Go to the next step.
Press enter or click to view image in full size

Step28

  • In this step, you use Linux commands to create a data directory. You then mount the newly created EFS file system to that directory. You create a log file and append information to it. The log file and its contents are visible from other instances that have the same file system mounted.
  1. In the terminal, run:

mkdir data

  • If you receive a Permission Denied error alert, run the following command, and then repeat the previous command:

cd ~/

  1. In the terminal, paste the sudo mount command that you copied from the Amazon EFS console in an earlier step.
  2. At the end of the pasted command, to replace the “efs” folder name, type:

data

and press Enter.

  • The command should look similar to what is displayed in the screenshot example.
  1. In the terminal, run:

cd data

  1. To create a log file, run:

sudo bash -c “cat >> efs-1-setup.log”

  • No output is displayed. Instead, the cursor moves to a new line and waits for your next input.
  1. In the terminal, type:

efs-1 mounted in site A

  1. To end the cat session, press Ctrl+C on your keyboard.
  2. To view the log file contents, run:

cat efs-1-setup.log

  1. Go to the next step.
Press enter or click to view image in full size

Step29

  1. In the other browser tab, navigate to the File systems page on the Amazon EFS console.
  2. Click the file system name PetModels-EFS-1.
  3. Go to the next step.
Press enter or click to view image in full size

Step30

  1. On the Network tab, click Manage.
  2. Go to the next step.
Press enter or click to view image in full size

Step31

  1. Under Mount targets, click Add mount target.
  2. Go to the next step.
Press enter or click to view image in full size

Step32

  1. For the new mount target, for Availability zone, choose or keep us-east-1b.
  2. For Subnet ID, choose PetModels-Subnet2.
  3. Go to the next step.
Press enter or click to view image in full size

Step33

  1. For Security groups, choose PetModels-EFS-1-SG.
  2. Click Save.
  • If the “User is not authorized to perform that action on the specified resource” error alert appears, you can safely ignore it.
  1. Go to the next step.
Press enter or click to view image in full size

Step34

  1. After a few minutes, in the Network section, click the refresh icon.
  2. For the new mount target, under Mount target state, review to confirm that the state is Available.
  • Wait for the state to change before proceeding.
  1. Go to the next step.
Press enter or click to view image in full size

Step35

  1. Navigate to the Instances page on the Amazon EC2 console.
  2. Choose the checkbox to select WebServer2.
  3. Click Connect.
  4. Go to the next step.
Press enter or click to view image in full size

Step36

  1. In the In web browser tab, choose SSM Session Manager.
  2. Click Connect.
  3. Go to the next step.
Press enter or click to view image in full size

Step37

  1. In the terminal, run:

sudo -i

  1. In the terminal, run:

sudo yum install -y amazon-efs-utils

  1. Go to the next step.
Press enter or click to view image in full size

Step38

  • In this step, you create a data directory, mount your EFS file system to the data directory, and add entries to the existing log file.
  1. In the terminal, run:

mkdir data

  • If you receive a Permission Denied error alert, run the following command, and then repeat the previous command:

cd ~/

  1. In the terminal, paste the sudo mount command that you copied from the Amazon EFS console in an earlier step.
  2. At the end of the pasted command, to replace the “efs” folder name, type:

data

and press Enter.

  • The command should look similar to what is displayed in the screenshot example.
  1. In the terminal, run:

cd data

  1. To create a log file, run:

sudo bash -c “cat >> efs-1-setup.log”

  • Again, no output is displayed. The cursor moves to a new line and waits for your next input.
  1. In the terminal, type:

efs-1 mounted in site B

  1. To end the cat session, press Ctrl+C on your keyboard.
  2. Go to the next step.
Press enter or click to view image in full size

Step39

  1. To view the log file contents, run:

cat efs-1-setup.log

  1. Review the two log entries.
  • The changes made in both WebServer1 and WebServer2 are in the efs-1-setup.log file.
  1. Go to the next step.
Press enter or click to view image in full size

Step1

  1. Review the practice lab objectives in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step2

  1. In the top navigation bar search box, type:ec2
  2. In the search results, under Services, click EC2.
  3. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click Instances.
  2. In the Instances section, review the number of running instances.
  3. For the Game Server instance, under Instance ID, click the provided ID.
  4. Go to the next step.
Press enter or click to view image in full size

Step4

  1. Under Public IPv4 address, click the copy icon to copy the provided address.
  2. Go to the next step.
Press enter or click to view image in full size

Step5

  1. In a new browser tab (or window) address bar, type:

http://

  1. To complete the URL, next to the protocol (http://), paste the web server public IP address that you just copied and press Enter.
  2. Switch back to the AWS console browser window or tab (not shown).
  3. Go to the next step.
Press enter or click to view image in full size

Step6

  1. Click Actions to expand the menu.
  2. Choose Image and templates.
  3. Choose Create image.
  4. Go to the next step.
Press enter or click to view image in full size

Step7

  1. For Image name, type:

GameServer

  1. For Image description, type:

Game server image

  1. Scroll down to the Tags section.
  2. Go to the next step.
Press enter or click to view image in full size

Step8

  1. For Tags, keep the default choice of Tag image and snapshots together.
  2. Click Create image.
  3. Go to the next step.
Press enter or click to view image in full size

Step9

  1. In the left navigation pane, under Images, click AMIs.
  2. In the AMIs section, for the GameServer AMI, under Status, review to confirm that Available is displayed.
  • Allow up to 5 minutes for the status to change. Click refresh periodically to check.
  1. In the left navigation pane, click Launch Templates.
  2. Go to the next step.
Press enter or click to view image in full size

Step10

  1. On the EC2 launch templates home page, click Create launch template.
  2. Go to the next step.
Press enter or click to view image in full size

Step11

  1. For Launch template name, type:

GameServerTemplate

  1. For Template version description, type:

Game server template

  1. For Auto Scaling guidance, choose the checkbox to select Provide guidance to help me…
  2. Go to the next step.
Press enter or click to view image in full size

Step12

  1. In the Application and OS Images section, click the My AMIs tab.
  2. Choose Owned by me.
  3. For Amazon Machine Image (AMI), on the dropdown list, choose GameServer.
  4. Go to the next step.
Press enter or click to view image in full size

Step13

  1. For Instance type, choose t3.micro.
  2. For Key pair name, click Create new key pair.
  3. Go to the next step.
Press enter or click to view image in full size

Step14

  1. In the pop-up box, for Key pair name, type:

GameServerKeyPair

  1. For Key pair type, choose RSA.
  2. For Private key file format, choose .pem.
  3. Click Create key pair.
  4. After you are prompted to download it (not shown), save the GameServeKeyPair file to your device.
  5. Go to the next step.
Press enter or click to view image in full size

Step15

  1. For Firewall (security groups), choose Select existing security group.
  2. For Security groups, choose WebServerSecurityGroup.
  3. Go to the next step.
Press enter or click to view image in full size

Step16

  1. At the bottom of page, review the Summary section.
  2. Click Create launch template.
  3. Go to the next step.
Press enter or click to view image in full size

Step17

  1. In the success alert, review the message.
  2. At the bottom of the page, click View launch templates.
  3. Go to the next step.
Press enter or click to view image in full size

Step18

  1. In the left navigation pane, click Auto Scaling Groups.
  • You might need to click the menu icon (three lines) in the left side panel to expand the navigation pane.
  1. On the Amazon EC2 Auto Scaling home page, click Create Auto Scaling group.
  2. Go to the next step.
Press enter or click to view image in full size

Step19

  1. In the Choose launch template or configuration step, for Auto Scaling group name, type:

RegularCustomerGameServer

  1. For Launch template, choose GameServerTemplate.
  2. Scroll to the bottom of the page, and then click Next (not shown).
  3. Go to the next step.
Press enter or click to view image in full size

Step20

  1. In the Choose instance launch options step, for VPC, choose the VPC name that ends with auto-healing-and-scaling/GameServerVPC.
  2. For Availability Zones and subnets, choose both subnet names that contain game-server-netSubnet.
  3. Scroll to the bottom of the page, and then click Next (not shown).
  4. Go to the next step.
Press enter or click to view image in full size

Step21

  1. In the Integrate with other services step, for Load balancing, choose No load balancer.
  2. In the VPC Lattice integration options section, keep the default settings.
  3. Go to the next step.
Press enter or click to view image in full size

Step22

  1. In the Health checks section, for Health check grace period, type: 240
  2. Click Next.
  3. Go to the next step.
Press enter or click to view image in full size

Step23

  1. In the Configure group size and scaling step, for Desired capacity, type: 2
  2. For Min desired capacity, type: 2
  3. For Max desired capacity, type: 4
  4. Scroll down to the bottom of the page, and then click Next (not shown).
  5. Go to the next step.
Press enter or click to view image in full size

Step24

  1. In the Add notifications step, click Skip to review.
  2. Go to the next step.
Press enter or click to view image in full size

Step25

  1. In the Review step, review your configuration settings.
  2. At the bottom of the page, click Create Auto Scaling group.
  3. Go to the next step.
Press enter or click to view image in full size

Step26

  1. In the success alert, review the message.
  2. Under Status, review the status of the Auto Scaling group.
  • You can proceed while the group is updating.
  1. Click RegularCustomerGameServer.
  2. Go to the next step.
Press enter or click to view image in full size

Step27

  1. Click the Activity tab.
  2. In the Activity history section, review to see that two instances were created to meet the “desired and actual capacity.”
  3. Click the Automatic scaling tab.
  4. Go to the next step.
Press enter or click to view image in full size

Step28

  1. In the Dynamic scaling policies section, click Create dynamic scaling policy.
  2. Go to the next step.
Press enter or click to view image in full size

Step29

  1. For Policy type, choose or keep Target tracking scaling.
  2. For Scaling policy name, type:

CPU Utilization

  1. For Metric type, choose Average CPU utilization.
  2. For Target value, type: 70
  3. Click Create.
  4. Go to the next step.
Press enter or click to view image in full size

Step30

  1. In the success alert, review the message.
  2. Review the created target tracking scaling policy.
  3. Go to the next step.
Press enter or click to view image in full size

Step31

  1. In the Scheduled actions section, click Create scheduled action.
  2. Go to the next step.
Press enter or click to view image in full size

Step32

  1. In the pop-up box, for Name, type:

SecondWaveOfRegulars

  1. For Desired capacity, type: 3
  2. For Min, type: 3
  3. For Max, type: 4
  4. For Recurrence, choose Every week.
  5. For Specific start time, choose a future date.
  6. In the next text box, type 20:00.
  7. Click Create.
  8. Go to the next step.
Press enter or click to view image in full size

Step33

  1. In the Scheduled actions section, review the new scheduled action.
  2. Go to the next step.
Press enter or click to view image in full size

Step34

  1. Return to the Instances page on the Amazon EC2 console.
  2. Review the two new instances being created by the Auto Scaling group.
  • If the instances are not displayed, click the section’s refresh icon.
  1. Go to the next step.
Press enter or click to view image in full size

Step35

  1. Navigate to the Amazon CloudWatch console.
  • Remember you can use the Services search box (or click Services) on the top navigation bar to navigate to a different service console.
  1. In the left navigation pane, click Alarms.
  2. In the Alarms section, click the alarm name that starts with TargetTracking-RegularCustomerGameServer-AlarmHigh-.
  3. Go to the next step.
Press enter or click to view image in full size

Step36

  1. On the CPUUtilization graph, review the red In alarm line at the 70 percent axis.
  • This parameter was defined when you created the CPU Utilization scaling policy in the Auto Scaling group.
  1. Review the blue CPUUtilization line.
  • This line represents the current average CPU usage.
  • If you do not see the blue line, the data might not have populated yet.
  1. Go to the next step.
Press enter or click to view image in full size

Step37

  1. At the bottom of the page, click the Actions tab.
  2. For the Auto Scaling action, review the description.
  3. Go to the next step.
Press enter or click to view image in full size

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step2

  1. In the top navigation bar search box, type:

ec2

  1. In the search results, under Services, click EC2.
  2. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click Auto Scaling Groups.
  2. In the Auto Scaling groups section, choose the checkbox to select TravelAgencyWebServers.
  3. Below that section, on the Details tab, review the current capacity details.
  4. Go to the next step.
Press enter or click to view image in full size

Step4

  1. In the Network section, review to see that the Auto Scaling group is configured with a single subnet in one Availability Zone.
  • Distributing instances across multiple Availability Zones helps maintain application availability by balancing replacement instances across these zones when failures occur.
  1. Go to the next step.
Press enter or click to view image in full size

Step5

  1. Scroll up to the tab ribbon, and then click the Instance management tab.
  2. Review to see that the Auto Scaling group contains one EC2 instance.
  3. Go to the next step.
Press enter or click to view image in full size

Step6

  1. In the left navigation pane, click Target Groups.
  2. Click Create target group.
  3. Go to the next step.
Press enter or click to view image in full size

Step7

  1. In the Settings section, Choose Instances.
  2. Scroll down to Target group name.
  3. Go to the next step.
Press enter or click to view image in full size

Step8

  1. For Target group name, type:

TravelAgencyWebServer-TG

  1. Scroll down to the VPC section.
  2. Go to the next step.
Press enter or click to view image in full size

Step9

  1. For VPC, choose (lab/TravelAgencyVpc).
  2. Scroll down to the bottom of the page.
  3. Click Next, then click Next again (now shown). 4 Go to the next step.
Press enter or click to view image in full size

Step10

  1. Scroll down to the bottom of the page.
  2. Click Create target group.
  3. Go to the next step.
Press enter or click to view image in full size

Step11

  1. Review successful target group creation.
  2. In the left navigation pane, click Load Balancers.
  3. Go to the next step.
Press enter or click to view image in full size

Step12

  1. Click Create load balancer.
  2. Go to the next step.
Press enter or click to view image in full size

Step13

  1. In Load balancer types, under Application Load Balancer, click Create.
  2. Go to the next step.
Press enter or click to view image in full size

Step14

  1. For Load balancer name, type:

TravelAgencyServers-ALB

  1. Under Scheme, select Internet-facing.
  2. Scroll down to VPC.
  3. Go to the next step.
Press enter or click to view image in full size

Step15

  1. For VPC, choose lab/TravelAgencyVpc.
  2. Under Availability Zones and subnets, choose us-east-1a.
  3. For Subnet for us-east-1a, choose the public subnet.
  4. Repeat steps 2 and 3 for us-east-1b and us-east-1c.
  • Make sure to choose the public subnet for each Availability Zone.
  1. Go to the next step.
Press enter or click to view image in full size

Step16

  1. For Security groups, remove default and choose TravelAgencyWebServer.
  2. Go to the next step.
Press enter or click to view image in full size

Step17

  1. Under Default action for Listeners and routing, choose Forward to target groups.
  2. For Target group, choose TravelAgencyWebServer-TG.
  3. Scroll down to Summary.
  4. Go to the next step.
Press enter or click to view image in full size

Step18

  1. Review the load balancer configuration summary.
  2. Go to the next step.
Press enter or click to view image in full size

Step19

  1. Click Create load balancer.
  2. Go to the next step.
Press enter or click to view image in full size

Step20

  1. In the left navigation pane click Auto Scaling Groups.
  2. Choose TravelAgencyWebServers.
  3. Go to the next step.
Press enter or click to view image in full size

Step21

  1. Click on the Integrations tab.
  2. In the Load balancing section, Click Edit.
  3. Go to the next step.
Press enter or click to view image in full size

Step22

  1. Under Load balancing, choose Application, Network or Gateway Load Balancer target groups.
  2. For target groups, choose the TravelAgencyWebServer-TG.
  3. Click Update.
  4. Go to the next step.
Press enter or click to view image in full size

Step23

  1. In the left navigation pane, click Security Groups.
  2. In the Security Groups section, click Create security group.
  3. Go to the next step
Press enter or click to view image in full size

Step24

1 . In the Basic details section, for Security group name, type:

Get Shoaib Ahmed’s stories in your inbox

Join Medium for free to get updates from this writer.

TravelAgencyLoadBalancer

  1. For Description, type a description that you like, such as Allow access to the travel agency load balancer from the internet.
  2. For VPC, choose the VPC name that ends with lab/TravelAgencyVpc.
  3. In the Inbound rules section, click Add rule.
  4. Go to the next step.
Press enter or click to view image in full size

Step25

  1. For Type, choose HTTP.
  2. To allow all inbound traffic, for Source, in the Custom search box, choose 0.0.0.0/0.
  3. Go to the next step.
Press enter or click to view image in full size

Step26

  1. In the Outbound rules section, for Type, choose HTTP.
  2. For Destination, next to Custom, choose the TravelAgencyWebServer security group.
  3. To remove the 0.0.0.0/0 destination, click the X (not shown).
  4. Click Create security group.
  5. Go to the next step.
Press enter or click to view image in full size

Step27

  1. In the left navigation pane, click Security Groups.
  2. In the Security Groups section, choose the checkbox to select the TravelAgencyWebServer security group.
  3. On the Actions dropdown list, choose Edit inbound rules.
  4. Go to the next step.
Press enter or click to view image in full size

Step28

  1. In the Inbound rules section, to remove the existing rule, click Delete.
  • To modify a rule type, you must delete the existing rule.
  1. To add a new rule, click Add rule.
  2. Go to the next step.
Press enter or click to view image in full size

Step29

  1. For Type, choose HTTP.
  2. For Source, next to Custom, choose the TravelAgencyLoadBalancer security group.
  3. Click Save rules.
  4. Go to the next step.
Press enter or click to view image in full size

Step30

  1. In the left navigation pane, click Load Balancers.
  2. In the Load balancers section, click TravelAgencyWebServers-1.
  3. Go to the next step.
Press enter or click to view image in full size

Step31

  1. Click the Security tab.
  2. Click Edit.
  3. Go to the next step.
Press enter or click to view image in full size

Step32

  1. For Security groups, to deselect the TravelAgencywebServer security group, click the X.
  2. Go to the next step.
Press enter or click to view image in full size

Step33

  1. Choose the TravelAgencyLoadBalancer security group.
  2. Click Save changes.
  3. Go to the next step.
Press enter or click to view image in full size

Step34

  1. In the success alert, review the message.
  2. For the Application Load Balancer, under DNS name, click the copy icon to copy the provided name.
  3. Go to the next step.
Press enter or click to view image in full size

Step35

  1. In a new browser tab (or window) address bar, paste the DNS name that you just copied, and then add http:// to the beginning and press Enter (not shown).
  • If you receive an error alert, check that the URL begins with http:// (not https://). The page is hosted only with HTTP.
  • If you don’t see your application, check the rules in the security group that you associated with the load balancer.
  1. Review the HTML page, which should look similar to what is displayed in the screenshot example.
  • The travel agency web application is now behind an Application Load Balancer.
  1. Go to the next step.
Press enter or click to view image in full size

Step36

  1. In the same browser tab, at the end of the address that you just edited, type:

/health

and press Enter.

  1. Review the short message that loads, stating that the instance is healthy.
  • Keep this browser tab open for later health checks.
  1. Go to the next step.
Press enter or click to view image in full size

Step37

  1. Return to the Amazon EC2 console in the other browser tab.
  2. In the left navigation pane, click Target Groups.
  3. In the Target groups section, choose the checkbox to select TravelAgencyWebServers-1.
  4. Below that section, click the Health checks tab.
  5. In the Health check settings section, click Edit.
  6. Go to the next step.
Press enter or click to view image in full size

Step38

  1. For Health check path, type:

/health

  1. Click to expand Advanced health check settings.
  2. Go to the next step.
Press enter or click to view image in full size

Step39

  1. For Unhealthy threshold, type: 2
  2. For Timeout, type: 2
  3. For Interval, type: 5
  4. Click Save changes.
  • The default settings mark instances unhealthy after 150 seconds (5 checks at 30-second intervals). The new settings mark instances unhealthy after 10 seconds (2 checks at 5-second intervals).
  1. Go to the next step.
Press enter or click to view image in full size

Step40

  1. In the left navigation pane, click Auto Scaling Groups.
  2. In the Auto Scaling groups section, choose the checkbox to select TravelAgencyWebServers.
  • If the group is already selected and the bottom window is empty, clear the checkbox and choose it again.
  1. Below that section, on the Details tab, in the Network section, click Edit.
  2. Go to the next step.
Press enter or click to view image in full size

Step41

  1. For Availability Zones and subnets, keep or choose subnet lab/TravelAgencyVpc/PublicSubnet1.
  • If any other subnets are selected, click the X to remove them.
  1. Click Update.
  2. Go to the next step.
Press enter or click to view image in full size

Step42

  1. In the left navigation pane, click Instances.
  2. In the Instances section, choose the checkbox to select the TravelAgencyWebServers instance.
  3. Under Instance ID, review the ID.
  4. Below that section, click the Networking tab.
  5. Under Subnet ID, review to see that the instance is in subnet lab/TravelAgencyVpc/PublicSubnet1.
  6. In the Instances section, on the Instance state dropdown list, choose Terminate (delete) instance.
  7. In the pop-up box (not shown), click Terminate (delete).
  • Terminating the instance invokes a new instance launch in the public subnet because it reduces the Auto Scaling group below its minimum count.
  1. Go to the next step.
Press enter or click to view image in full size

Step43

  1. After a few minutes, in the Instances section, click the refresh icon.
  • The instances list should now include the newly created instance.
  1. Choose the checkbox to select the new instance.
  2. Under Instance ID, review the new instance’s ID.
  3. Below that section, click the Networking tab.
  4. Under Subnet ID, review to see that the new instance is in subnet lab/TravelAgencyVpc/PublicSubnet1.
  5. Go to the next step.
Press enter or click to view image in full size

Step44

  1. In the left navigation pane, click Auto Scaling Groups.
  2. In the Auto Scaling groups section, choose the checkbox to select TravelAgencyWebServers.
  • If the group is already selected and the bottom window is empty, clear the checkbox and choose it again.
  1. Below that section, click the Activity tab.
  2. Go to the next step.
Press enter or click to view image in full size

Step45

  1. In the Activity history section, review to see that the old instance was terminated.
  2. Review to see that the Auto Scaling group responded by creating a new instance.
  3. Go to the next step.
Press enter or click to view image in full size

Step46

  1. Return to the health check page in the other browser tab.
  2. Click the browser’s refresh icon.
  3. Review the message.
  • If you receive an error alert, wait a little longer and click the refresh icon again.
  • In the message, note that the instance ID value has changed to the new instance.
  1. Go to the next step.
Press enter or click to view image in full size

Step47

  1. In the other browser tab, return to the Auto Scaling groups page on the Amazon EC2 console.
  2. Review to confirm that the TravelAgencyWebServers group is still selected.
  3. Below that section, on the Details tab, in the Network section, click Edit.
  4. Go to the next step.
Press enter or click to view image in full size

Step48

  1. For Availability Zones and subnets, choose subnet lab/TravelAgencyVpc/PublicSubnet2.
  • Both lab/TravelAgencyVpc/PublicSubnet1 and lab/TravelAgencyVpc/PublicSubnet2 should now be selected.
  1. Click Update.
  2. Go to the next step.
Press enter or click to view image in full size

Step49

  1. In the success alert, review the message.
  2. On the Details tab, in the TravelAgencyWebServers Capacity overview section, click Edit.
  3. Go to the next step.
Press enter or click to view image in full size

Step50

  1. In the pop-up box, for Desired capacity, type: 2.
  2. Review Max desired capacity updated to 2.
  3. Click Update.
  4. Go to the next step.
Press enter or click to view image in full size

Step51

  1. In the success alert, review the message.
  2. Click the Activity tab.
  3. Go to the next step.
Press enter or click to view image in full size

Step52

  1. Review to see that a new instance is launching.
  • Note the new instance ID.
  1. Go to the next step.
Press enter or click to view image in full size

Step53

  1. In the left navigation pane, click Instances.
  2. In the Instances section, choose the checkbox to select the instance with the new instance ID from the previous step.
  3. Below that section, click the Networking tab.
  4. Under Subnet ID, review to see that the new instance is in subnet lab/TravelAgencyVpc/PublicSubnet2.
  5. Go to the next step.
Press enter or click to view image in full size

Step54

  1. Return to the health check page in the other browser tab.
  2. Click the browser’s refresh icon.
  3. Review the message.
  • You might need to click the refresh icon several times.
  • In the message, note that the instance ID changed to the newest instance.
  1. Go to the next step.
Press enter or click to view image in full size

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step2

  1. In the top navigation bar search box, type:vpc
  2. In the search results, under Services, click VPC.
  3. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click Your VPCs.
  2. In the Your VPCs section, review the available Marketing, Finance, and Developer VPCs.
  3. Go to the next step.
Press enter or click to view image in full size

Step4

  1. In the top navigation bar search box, type:ec2
  2. In the search results, under Services, click EC2.
  3. Go to the next step.
Press enter or click to view image in full size

Step5

  1. On the Dashboard, in the Resources section, click Instances (running).
  2. Go to the next step.
Press enter or click to view image in full size

Step6

  1. In the Instances section, choose the checkbox to select the FinanceServer instance.
  2. Below that section, click the Networking tab.
  3. Review to see that no Public IPv4 address or Public IPv4 DNS is currently populated.
  • An instance created in a private subnet has no public addresses.
  1. Under Private IPv4 addresses, click the copy icon to copy the provided IP address, and then paste it in the text editor of your choice on your device.
  • You use this address in later steps.
  1. Under Subnet ID, review the provided ID.
  2. Go to the next step.
Press enter or click to view image in full size

Step7

  1. In the Instances section, clear the checkbox to deselect the FinanceServer instance.
  2. Choose the MarketingServer instance.
  3. Below that section, on the Networking tab, under VPC ID, review the VPC that the MarketingServer instance belongs to.
  4. At the top of the Instances section, click Connect.
  5. Go to the next step.
Press enter or click to view image in full size

Step8

  1. Choose the Session Manager card.
  2. Click Connect.
  • The Session Manager terminal for the MarketingServer instance opens in a new browser tab (or window).
  1. Go to the next step.
Press enter or click to view image in full size

Step9

  1. In the Session Manager terminal window, replacing the current IP address with the IP address of the FinanceServer that you copied in an earlier step, run (type the command and press Enter):

ping 172.31.x.xx

  • This command checks the connection to the FinanceServer instance.
  1. Review to see that your command hangs, and there is no connection.
  • There is no error alert.
  • Because the FinanceServer instance uses only a private IP address, VPCs cannot establish routing paths to destinations outside their local private IP range.
  1. To exit the running process, press Ctrl+C on your keyboard.
  2. Go to next the step.
Press enter or click to view image in full size

Step10

  1. In the other browser tab, return to Instances page on the Amazon EC2 console.
  2. Review to confirm that the MarketingServer instance is still selected.
  3. On the Networking tab, under Subnet ID, click the ID for MarketingPublicSubnet1.
  4. Go to the next step.
Press enter or click to view image in full size

Step11

  1. In the Subnets section, choose the available subnet name.
  2. On the Details tab, under Route table, click the provided route ID.
  • The VPC dashboard opens in a new browser tab (or window).
  1. Go to the next step.
Press enter or click to view image in full size

Step12

  1. In the Route tables section, choose the available Marketing route table.
  2. On the Routes tab, review the routing rules.
  • Two routes should be displayed: one route for local traffic and one route for internet traffic through the internet gateway.
  1. Go to the next step.
Press enter or click to view image in full size

Step13

  1. In the left navigation pane, click Peering connections.
  2. In the Peering connections section, click Create peering connection.
  3. Go to the next step.
Press enter or click to view image in full size

Step14

  1. In the Peering connection settings section, for Name, type:

Marketing <> Finance

  1. For VPC ID (Requester), on the dropdown list, choose the Marketing VPC.
  2. For VPC CIDRs, review to confirm that the Marketing VPC has 10.10.0.0/16 as its CIDR range.
  3. Go to the next step.
Press enter or click to view image in full size

Step15

  1. For VPC ID (Accepter), choose the Finance VPC.
  2. For VPC CIDRs, review to confirm that the Finance VPC has 172.31.0.0/16 as its CIDR range.
  3. Click Create peering connection.
  4. Go to the next step.
Press enter or click to view image in full size

Step16

  1. In the success alert, review the message.
  2. In the Details section, under Status, review to confirm that the status is Pending Acceptance.
  3. Click Actions to expand the dropdown list.
  4. Choose Accept request.
  5. Go to the next step.
Press enter or click to view image in full size

Step17

  1. In the pop-up box, click Accept request.
  2. Go to the next step.
Press enter or click to view image in full size

Step18

  1. In the success alert, review the message.
  2. In the Details section, under Status, review to confirm that the status is Active.
  3. Go to the next step.
Press enter or click to view image in full size

Step19

  1. In the other browser tab, return to the Instances page on the Amazon EC2 console.
  2. Choose the MarketingServer instance.
  3. On the Details tab, under Subnet ID, click the provided ID.
  4. Go to the next step.
Press enter or click to view image in full size

Step20

  1. In the Subnets section, choose the the available subnet.
  2. On the Details tab, under Route table, click the provided ID.
  • The VPC dashboard opens in a new browser tab (or window).
  1. Go to the next step.
Press enter or click to view image in full size

Step21

  1. In the Route tables section, choose the Marketing route table.
  2. On the Routes tab, click Edit routes.
  3. Go to the next step.
Press enter or click to view image in full size

Step22

  1. Click Add route.
  2. To configure the route, for Destination, in the new search box, type:

172.31.0.0/16

  • This CIDR block belongs to the Finance VPC.
  1. For Target, choose Peering Connection.
  2. Below that, choose the peering connection target that contains Marketing <> Finance.
  3. Click Save changes.
  4. Go to the next step.
Press enter or click to view image in full size

Step23

  1. In the success alert, review the message.
  2. On the Routes tab, review the newly created route.
  • The new route directs traffic that originates from the Marketing VPC (10.10.0.0/16) intended for the Finance VPC (172.31.0.0/16) through the peering connection.
  1. Go to the next step.
Press enter or click to view image in full size

Step24

  1. In the other browser tab, return to the Instances page on the Amazon EC2 console.
  2. Choose the FinanceServer instance.
  • You might need to clear the checkbox for the MarketingServer instance.
  1. On the Details tab, under Subnet ID, click the provided ID.
  2. Go to the next step.
Press enter or click to view image in full size

Step25

  1. In the Subnets section, choose the available subnet.
  2. On the Details tab, under Route table, click the provided route ID.
  • The VPC dashboard opens in a new browser tab (or window).
  1. Go to the next step.
Press enter or click to view image in full size

Step26

  1. In the Route tables section, choose the Finance route table.
  2. On the Routes tab, click Edit routes.
  3. Go to the next step.
Press enter or click to view image in full size

Step27

  1. Click Add route.
  2. To configure the route, for Destination, in the new search box, type:

10.10.0.0/16

  • This CIDR block belongs to the Marketing VPC.
  1. For Target, choose Peering Connection.
  2. Below that, choose the peering connection target that contains Marketing <> Finance.
  3. Click Save changes.
  4. Go to the next step.
Press enter or click to view image in full size

Step28

  1. In the success alert, review the message.
  2. On the Routes tab, review the newly created route.
  • The new route directs traffic that originates from the Finance VPC (172.31.0.0/16) intended for the Marketing VPC (10.10.0.0/16) through the peering connection.
  1. Go to the next step.
Press enter or click to view image in full size

Step29

  1. In the other browser tab, return to the Instances page on the Amazon EC2 console.
  2. Choose the MarketingServer instance.
  • You might need to clear the checkbox for the FinanceServer instance.
  • For clarity, you can also close all other open browser tabs.
  1. Click Connect.
  2. Go to the next step.
Press enter or click to view image in full size

Step30

  1. Choose the Session Manager card.
  2. Click Connect.
  • The Session Manager terminal for the MarketingServer instance opens in a new browser tab (or window).
  1. Go to the next step.
Press enter or click to view image in full size

Step31

  1. In the Session Manager terminal window, replacing the current IP address with the IP address that you copied in an earlier step, run:

ping 172.31.x.xx

  • This is the private IPv4 address is for the FinanceServer instance.
  1. Review to see that the ping command is still not working.
  2. To exit the running process, press Ctrl+C on your keyboard.
  3. Go to the next step.
Press enter or click to view image in full size

Step32

  1. In the other browser, return to the Instances page on the Amazon EC2 console.
  2. Choose the FinanceServer instance.
  3. Click the Security tab.
  4. Under Security groups, click the provided security group name that contains FinanceServerSecurityGroup.
  5. Go to the next step.
Press enter or click to view image in full size

Step33

  1. On the Inbound rules tab, click Edit inbound rules.
  2. Go to the next step.
Press enter or click to view image in full size

Step34

  1. Click Add rule.
  2. For Type, choose Custom ICMP — IPv4.
  3. For Source, in the new search box, type and choose:

10.10.0.0/16

  1. Click Save rules.
  2. Go to the next step.
Press enter or click to view image in full size

Step35

  1. In the other browser tab, return to the Session Manager terminal.
  • If the Session Manager command line has timed out, you need to connect to the MarketingServer instance from the Session Manager tab again.
  1. In the terminal window, replacing the current IP address with the IP address that you copied in an earlier step, run:

ping <172.31.x.xx>

Press enter or click to view image in full size

Step1

  1. Review the practice lab tasks in the Concept section.
  2. Click Start Lab or Open AWS Console to begin.
  3. Follow the lab instructions carefully, and use the arrows to navigate between steps.

AWS services not used in this lab are disabled in the lab environment. In addition, the capabilities of the services used in this lab are limited to what the lab requires.

Step2

  1. In the top navigation bar search box, type:iam
  2. In the search results, under Services, click IAM.
  3. Go to the next step.
Press enter or click to view image in full size

Step3

  1. In the left navigation pane, click User groups.
  2. In the User groups section, click Create group.
  3. Go to the next step.
Press enter or click to view image in full size

Step4

  1. For User group name, type:

SupportEngineers

  • The group name is case sensitive and must be entered exactly as shown.
  1. Go to the next step.
Press enter or click to view image in full size

Step5

  1. In the Attach permissions policies search box, type:

AmazonEC2ReadOnlyAccess

and press Enter.

  1. Choose the checkbox to select AmazonEC2ReadOnlyAccess.
  2. Under Description, review the policy description.
  3. Click Create user group.
  • If you get an error, check the group name spelling and capitalization. You must use “SupportEngineers” exactly as shown.
  1. Go to the next step.
Press enter or click to view image in full size

Step6

  1. In the left navigation pane, click Users.
  2. In the Users section, click Create user.
  3. Go to the next step.
Press enter or click to view image in full size

Step7

  1. In the Specify user details step, for User name, type:

support-engineer-1

  • The user name is case sensitive and must be entered exactly as shown.
  1. Choose the checkbox to select Provide user access to the AWS Management Console.
  2. For Console password, choose Custom password.
  3. Below that, in the text box, type:

supportPassword!123

  • Your password needs at least 8 characters and must combine uppercase letters, lowercase letters, numbers, and symbols. These requirements are mandatory for signing in.
  1. Clear the checkbox to deselect Users must create a new password at next sign-in.
  2. Click Next.
  3. Go to the next step.
Press enter or click to view image in full size

Step8

  1. In the Set permissions step, for Permissions options, choose Add user to group.
  2. In the User groups section, choose the checkbox to select SupportEngineers.
  3. Click Next.
  4. Go to the next step.
Press enter or click to view image in full size

Step9

  1. In the Review and create step, in the Tags section, click Add new tag.
  2. For Key, type:

job-title

  1. For Value, type:

Support Engineer

  1. Click Create user.
  2. Go to the next step.
Press enter or click to view image in full size

Step10

  1. In the Retrieve password step, under Console sign-in URL, click the copy icon to copy the provided URL, and then paste it in the text editor of your choice on your device.
  • You can also click Download .csv file, which contains the console sign-in link and credentials.
  1. Click Return to users list.
  2. In the pop-up box (not shown), click Continue.
  3. Go to the next step.
Press enter or click to view image in full size

Step11

  1. Click the user name support-engineer-1.
  2. Go to the next step.
Press enter or click to view image in full size

Step12

  1. Click the Security credentials tab.
  2. Review the Multi-factor authentication (MFA) section.
  • MFA adds an extra layer of security. Even if someone gets your password, they can’t access your account without the second authentication code from your MFA device.
  1. Review the Access keys section.
  • Access keys provide programmatic access to AWS. They consist of an access key ID and a secret access key — you need both parts to make requests. These are permanent credentials for IAM or root users.
  1. Go to the next step.
Press enter or click to view image in full size

Step13

  1. In a new incognito or private browsing window address bar, paste the console sign-in URL that you copied in an earlier step, and then press Enter (not shown).
  • By using an incognito or private browsing window for this step, you can remain logged in with your original credentials in the previous browser window.
  1. For IAM username, type:

support-engineer-1

  1. For Password, type:

supportPassword!123

  1. Click Sign in.
  2. Go to the next step.
Press enter or click to view image in full size

Step14

  1. In the top navigation bar search box, type:ec2
  2. In the search results, under Services, click EC2.
  3. Go to the next step.
Press enter or click to view image in full size

Step15

  1. On the top navigation bar, click the Region selector to expand the dropdown list.
  2. Keep or choose US East (N. Virginia) us-east-1.
  3. Go to the next step.
Press enter or click to view image in full size

Step16

  1. On the Dashboard, in the Resources section, click Instances (running).
  2. Go to the next step.
Press enter or click to view image in full size

Step17

  1. In the Instances section, choose the checkbox to select the WebServer instance.
  2. Click Instance state to expand the dropdown list.
  3. Choose Terminate (delete) instance.
  4. Go to the next step.
Press enter or click to view image in full size

Step18

  1. In the pop-up box, click Terminate (delete).
  2. Go to the next step.
Press enter or click to view image in full size

Step19

  1. In the error alert, review the Failed to terminate message, stating that you cannot delete an instance due to user permissions.
  2. Go to the next step.
Press enter or click to view image in full size

--

--

Shoaib Ahmed
Shoaib Ahmed

Written by Shoaib Ahmed

Shoaib Ahmed, a Computer Science graduate passionate about AWS, DevOps, and simplifying tech for beginners. Exploring cloud and hands-on projects