Using AWS Config and CloudFormation to Monitor Resources
In this learning activity, we will use AWS Config to monitor the resources in our account. Specifically, we will configure a rule to check if our EC2 instances have detailed monitoring. The rule will evaluate both new and existing instances and will also evaluate changes to the monitoring level. Rather than set up the rule directly in AWS Config, we will use a CloudFormation template to configure the rule. By using CloudFormation, we can create a reuseable template. We will then take the additional step of setting up an SNS topic, which will be linked to our AWS Config rule. After subscribing to the SNS topic, we will be alerted via email when there are any changes to our environment.