Skip to content

Commit 52371aa

Browse files
committed
ReadMe
1 parent 43611c2 commit 52371aa

File tree

1 file changed

+10
-24
lines changed
  • registry/melmathari/templates/hetzner-cloud

1 file changed

+10
-24
lines changed

registry/melmathari/templates/hetzner-cloud/README.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -237,33 +237,19 @@ If you can't connect to development servers:
237237

238238
## Local Testing
239239

240-
To test this template locally before deployment:
240+
To test this template locally, create a `terraform.tfvars` file with:
241241

242-
1. **Create a configuration file**:
243-
244-
```bash
245-
cp terraform.tfvars.example terraform.tfvars
246-
```
247-
248-
2. **Add your Hetzner Cloud API token** to `terraform.tfvars`:
249-
250-
```hcl
251-
hcloud_token = "your-actual-token-here"
252-
```
253-
254-
3. **Initialize and validate**:
242+
```hcl
243+
hcloud_token = "your-hetzner-cloud-api-token"
244+
```
255245

256-
```bash
257-
terraform init
258-
terraform validate
259-
terraform plan
260-
```
246+
Then run:
261247

262-
4. **Test dynamic filtering**: Try planning with different locations to verify server types filter correctly:
263-
```bash
264-
terraform plan -var="location=fsn1" # Europe: Shows ARM (CAX), AMD (CX), Intel (CPX), Dedicated (CCX)
265-
terraform plan -var="location=ash" # USA: Shows only Intel (CPX) and Dedicated (CCX) - no ARM/AMD
266-
```
248+
```bash
249+
terraform init
250+
terraform validate
251+
terraform plan
252+
```
267253

268254
## Notes
269255

0 commit comments

Comments
 (0)