Real providers (AWS)
Everything above is offline against the fakes. The same nivis commands drive
real providers: nivis resolves a provider by address from the OpenTofu
registry, downloads and checksum-verifies the binary, negotiates the plugin
protocol (AWS speaks v5), configures it, and runs plan/apply/destroy. The example
nix/example/aws.nix (flake attr nivis.aws) declares the hashicorp/aws
provider with mkProvider and one aws_s3_bucket.
⚠️ This creates a real resource in your AWS account: one (free-tier) S3 bucket, then destroys it. The provider's
regionlives in the Nix config; only credentials come from the environment (the AWS SDK default chain), so setAWS_PROFILE(orAWS_ACCESS_KEY_ID/…). The first run downloads the ~900 MB AWS provider (cached afterwards).
For the full, hand-held walkthrough (prerequisites, writing the config line by
line, plan/apply/inspecting state/destroy, and troubleshooting) follow the
AWS S3 tutorial.