Mods
AWS

Policy: AWS > EC2 > Instance > Approved > Custom

Determine whether the AWS EC2 instance is allowed to exist. This policy will be evaluated by the Approved control. If an AWS EC2 instance is not approved, it will be subject to the action specified in the AWS > EC2 > Instance > Approved policy. See Approved for more information.

Note: The policy value must be a string with a value of Approved, Not approved or Skip, or in the form of YAML objects. The object(s) must contain the key result with its value as Approved or Not approved. A custom title and message can also be added using the keys title and message respectively.

Resource Types

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Policy Packs

This policy setting is used by the following policy packs:

Policy Specification

Default
Skip
Examples [YAML]
  • Approved
    
  • result: Approved
    
  • title: InstanceState
    result: Approved
    
  • title: InstanceState
    message: InstanceState is available
    result: Approved
    
  • title: InstanceType
    message: InstanceType is not t3.nano
    result: Not approved
    
  • - title: InstancePlatformDetails
      message: Instance Platform is Linux/UNIX
      result: Approved
    - title: InstanceEbsOptimized
      message: InstanceEbsOptimized is not true
      result: Not approved
    

Category

In Your Workspace

Developers