Deployment Troubleshooting

Installation
SKILL.md

Deployment Troubleshooting Guide

When a deployment fails, the error message is your best starting point — but Terraform and cloud provider error messages are often cryptic or misleading. This guide maps common error patterns to their root causes and fixes, organized by the deployment phase where they typically occur.

When helping a user debug a deployment issue, start by identifying which phase failed, then match the error text against the patterns below.

Phase 1: Terraform Init Errors

Init failures happen before any infrastructure is created. They're usually about provider plugins or backend configuration.

Error Pattern Root Cause Fix
Failed to install provider No internet, proxy blocking registry.terraform.io, or provider name typo Check connectivity: curl -I https://registry.terraform.io. If behind proxy, set HTTPS_PROXY. Verify provider source string
Could not load plugin Plugin cache corrupted or provider version mismatch Run terraform init -upgrade to re-download. Delete .terraform/ and retry if persistent
Backend initialization required Remote state bucket doesn't exist or credentials wrong Create the bucket first, verify credentials have access to it. Check region matches
Failed to query available provider packages DNS resolution failure or firewall blocking Try nslookup registry.terraform.io. Consider using terraform init -plugin-dir with pre-downloaded providers

Phase 2: Authentication Errors

Related skills

More from wgpsec/redc-template

Installs
GitHub Stars
43
First Seen