🚀Launch Week 08, April 14th - 18th, 2025🚀
Mods
AWS

Policy: AWS > IAM > Stack [Native] > Version

The OpenTofu (open source Terraform) version to use for this stack. Specify an npm-style semver string to determine which version of the OpenTofu container Guardrails will use to run this stack.

A Guardrails Stack [Native] is a set of resources configured by Guardrails, as specified via HCL source. Stacks are responsible for the creation and deletion of multiple resources.

Targets

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Setting this policy configures this control:

Policy Specification

Schema Type
string
Default template
{% if $.opentofuVersion.items | length > 0 %}"{{ $.opentofuVersion.items[0].value }}"{% else %}"1.8.*"{% endif %}
Default template input
|
{
opentofuVersion: policyValues(filter:"policyTypeLevel:self policyTypeId:'tmod:@turbot/turbot#/policy/types/stackNativeVersion'") {
items {
value
}
}
}

Category

In Your Workspace

Developers