A config rule that checks whether your EC2 instances are of the specified instance types.

This config rule supports the following parameters:

  • instanceType
    • Required: Yes
    • Type: CSV
    • Description:Comma-separated list of EC2 instance types (for example, "t2.small, m4.large, i2.xlarge").

CloudFormation Template

AWSTemplateFormatVersion: '2010-09-09'
Description: Check EC2 Instance Type
Resources:
  ConfigRule:
    Type: 'AWS::Config::ConfigRule'
    Properties:
      ConfigRuleName: undefined
      Description: "Checks if your EC2 instances are of a specific instance type. The rule is NON_COMPLIANT if an EC2 instance is not specified in the parameter list. For a list of supported EC2 instance types, see Instance types in the EC2 User Guide for Linux Instance.."
      Source:
        Owner: undefined
        SourceIdentifier: undefined
      Scope:
        ComplianceResourceTypes:
          - undefined
      InputParameters:
        instanceType: undefined