terraform_plan_test

Functions

terraform_plan_test

load("@rules_terraform//terraform:terraform_plan_test.bzl", "terraform_plan_test")

terraform_plan_test(name, tags, **kwargs)

Runs terraform plan as a test and keeps the plan for review.

The rule of the same name, tagged requires-network: a plan reaches the backend and the provider APIs, with credentials from --test_env.

PARAMETERS

NameDescriptionDefault Value
name(str) Target name.none
tags(list[str]) Extra tags. requires-network is always added.[]
kwargsForwarded to the rule: root, plan_args, expect_no_changes, lock, and the usual test attributes.none