docs: switch CLAUDE.md from terraform to opentofu/tofu commands

This commit is contained in:
Graham McIntire 2026-06-27 15:35:15 -05:00
parent 5d3c4259e8
commit 3c30faa244
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -4,28 +4,28 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## Overview
This is a Terraform configuration for managing TowerOps network monitoring resources. It uses the custom `towerops` Terraform provider to create and manage sites and devices in the TowerOps platform.
This is an OpenTofu configuration for managing TowerOps network monitoring resources. It uses the custom `towerops` provider to create and manage sites and devices in the TowerOps platform.
## Commands
```bash
# Initialize Terraform (downloads provider)
terraform init
# Initialize OpenTofu (downloads provider)
tofu init
# Preview changes
terraform plan
tofu plan
# Apply changes
terraform apply
tofu apply
# Destroy all resources
terraform destroy
tofu destroy
# Format Terraform files
terraform fmt
# Format files
tofu fmt
# Validate configuration
terraform validate
tofu validate
```
## Authentication
@ -55,7 +55,6 @@ Note: Changing `site_id` forces resource replacement.
## Import Existing Resources
```bash
terraform import towerops_site.example <uuid>
terraform import towerops_device.example <uuid>
tofu import towerops_site.example <uuid>
tofu import towerops_device.example <uuid>
```
- use opentofu