carlos / opentofu Public

Clone
git clone https://amadan.net/carlos/opentofu

Plain git — no account needed to clone.

Download

Download this file

1#!/usr/bin/env bash
2set -euo pipefail
3cd "$(dirname "$0")/.."
4export AWS_EC2_METADATA_DISABLED=true
5export AWS_ACCESS_KEY_ID=mock
6export AWS_SECRET_ACCESS_KEY=mock
7unset AWS_SESSION_TOKEN AWS_SECURITY_TOKEN AWS_PROFILE AWS_DEFAULT_PROFILE
8
9tofu fmt -check -recursive
10for module in modules/storage modules/region examples/single-host examples/single-region examples/two-regions; do
11 tofu -chdir="$module" init -backend=false -input=false -lockfile=readonly -no-color
12 tofu -chdir="$module" validate -no-color
13 tofu -chdir="$module" test -no-color
14done
15python3 scripts/check-bootstrap.py
16