Mods
AWS

Policy: AWS > EC2 > Instance > Default Platform

Determine the default Instance platform.

Resource Types

This policy targets the following resource types:

Policy Specification

Schema Type
string
Default template
'{%- if $.instance.ImagePlatformDetails -%}
{{ $.instance.ImagePlatformDetails }}
{%- elif $.instance.PlatformDetails -%}
{{ $.instance.PlatformDetails }}
{%- else -%}
""
{%- endif -%}'
Default template input
|
{
instance {
PlatformDetails: get(path: "PlatformDetails")
ImagePlatformDetails: get(path: "Image.PlatformDetails")
}
}

Category

In Your Workspace

Developers