Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
We are now going to attach the IAM Role created on the previous step in one of our EC2 Instances, to do that let’s go to the Amazon EC2 Dashboard.
From the EC2 Dashboard, scroll down a bit an click on Launch Instance
Select Linux 2 AMI (HVM)
Select t2.micro (free tier eligible) and click review and launch
It is possible to assign the IAM role during EC2 creation by clicking “Next: Configure Instance Details”. This lab shows the steps to assign it manually.
Click Launch
Select Proceed without a key pair
After the instance is launched and running, select the instance you want to start collecting Memory data and go to Actions on the top bar, select Security » Modify IAM role.
Look for the created IAM role CloudWatchAgentServerRole under the IAM role box, select it and apply.
Click on the Instance ID and validate the IAM role CloudWatchAgentServerRole is attached to the instance
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool