Control: EC2 instances should have IAM profile attached
Ensure that an AWS Elastic Compute Cloud (AWS EC2) instance has an Identity and Access Management (IAM) profile attached to it. This rule is non-compliant if no IAM profile is attached to the AWS EC2 instance.
Run the control in your terminal:
steampipe check aws_compliance.control.ec2_instance_iam_profile_attached
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share aws_compliance.control.ec2_instance_iam_profile_attached
This control uses a named query:ec2_instance_iam_profile_attached