Mods
AWS

Policy: AWS > EC2 > Volume > Performance Configuration > Type

Define the Volume Type required for AWS > EC2 > Volume. This policy will be set to null by default if the current volume type doesn't belong to the allowed enum values.

Resource Types

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Policy Specification

Schema Type
string
Valid Values [YAML]
  • io1
    
  • io2
    
  • gp2
    
  • gp3
    
  • sc1
    
  • st1
    
  • standard
    
Default template
{% set allowedValues = ['io1', 'io2', 'gp2', 'gp3', 'sc1', 'st1', 'standard'] %}
{% if allowedValues.includes($.volume.volumeType) %}{{ $.volume.volumeType }}{% else %}null{% endif %}
Default template input
|
{
volume {
volumeType: get(path: "VolumeType")
}
}
Examples [YAML]
  • gp3
    
  • io2
    

Category

In Your Workspace

Developers