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
The CloudFormation template that accompanies this lab requires the ability to create IAM Roles and IAM Instance Profiles. If the account you are using does not have these capabilities, you will not be able to complete this lab.
Download the LinuxMachineDeploy.yaml CloudFormation template to your machine.
Go to the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation and click Create Stack > With new resources
Leave Prepare template setting as-is
Click Next
For Stack name use LinuxMachineDeploy
Parameters
Look over the Parameters and their default values.
None of these parameters need to be changed, but are available if you wish to try different settings
Stack name – Use LinuxMachineDeploy (case sensitive)
CloudWatchNameSpace - The CloudWatch NameSpace to use instead of the default
InstanceAMI – This will auto-populate with the latest version of the Amazon Linux 2 AMI
InstanceType - Instance Type, defaults to t3.large but can use any size supported by Linux in the region you have chosen
MetricAggregationInterval - How often should the CloudWatch Agent send data into CloudWatch.
MetricCollectionInterval - How often should the CloudWatch Agent collect information from the Operating System.
PrimaryNodeLabel - The additional label assigned to the EC2 instance to use for searching within CloudWatch Explorer. This is done by adding an extra Tag to the EC2 instance.
VPCImportName - The name of the stack you created in the previous step that will be used to launch the instance into.
Click Next
For Configure stack options we recommend configuring tags, which are key-value pairs, that can help you identify your stacks and the resources they create. For example, enter Owner in the left column which is the key, and your email address in the right column which is the value. We will not use additional permissions or advanced options so click Next. For more information, see Setting AWS CloudFormation Stack Options.
For Review
This will take you to the CloudFormation stack status page, showing the stack creation in progress.
When it shows status CREATE_COMPLETE, then you are finished with this step.
This template will take between 2-5 minutes to fully deploy using a t3.large. A smaller instance size may take longer.
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