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
23
CLAUDE.md
23
CLAUDE.md
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue