docs: switch CLAUDE.md from terraform to opentofu/tofu commands
This commit is contained in:
parent
5d3c4259e8
commit
3c30faa244
1 changed files with 12 additions and 13 deletions
25
CLAUDE.md
25
CLAUDE.md
|
|
@ -4,28 +4,28 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||||
|
|
||||||
## Overview
|
## 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
|
## Commands
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Initialize Terraform (downloads provider)
|
# Initialize OpenTofu (downloads provider)
|
||||||
terraform init
|
tofu init
|
||||||
|
|
||||||
# Preview changes
|
# Preview changes
|
||||||
terraform plan
|
tofu plan
|
||||||
|
|
||||||
# Apply changes
|
# Apply changes
|
||||||
terraform apply
|
tofu apply
|
||||||
|
|
||||||
# Destroy all resources
|
# Destroy all resources
|
||||||
terraform destroy
|
tofu destroy
|
||||||
|
|
||||||
# Format Terraform files
|
# Format files
|
||||||
terraform fmt
|
tofu fmt
|
||||||
|
|
||||||
# Validate configuration
|
# Validate configuration
|
||||||
terraform validate
|
tofu validate
|
||||||
```
|
```
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
@ -55,7 +55,6 @@ Note: Changing `site_id` forces resource replacement.
|
||||||
## Import Existing Resources
|
## Import Existing Resources
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
terraform import towerops_site.example <uuid>
|
tofu import towerops_site.example <uuid>
|
||||||
terraform import towerops_device.example <uuid>
|
tofu import towerops_device.example <uuid>
|
||||||
```
|
```
|
||||||
- use opentofu
|
|
||||||
Loading…
Add table
Reference in a new issue