🚀Launch Week 07, Jaunary 27th - 31st, 2025🚀
Mods
AWS

Policy: AWS > S3 > Bucket > 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.

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
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