In this recipe, we will learn how to create a new assessment template with a custom assessment target for EC2 instances that have a particular tag. In the previous recipe, we created an assessment template with an assessment target for all EC2 instances in our AWS account.
Creating a custom Inspector template
Getting ready
Create an EC2 instance in the default VPC within a public subnet within the VPC using the default VPC security group. You can follow the Launching an EC2 instance into VPC recipe in Chapter 6, Working with EC2 Instances.
Add a tag with the Key as Environment and Value as Prod for the EC2 instances we need to assess:
You may use any Key and Value for the tag and use it accordingly within the following...