fuel infra:destroyfuel infra:destroy
Tear down all AWS infrastructure managed by OpenTofu.
Usage
fuel infra:destroy [options]Description
Runs tofu init and tofu destroy -auto-approve to remove all AWS resources managed by OpenTofu: ECR repositories, ECS cluster and services, RDS instances, ALB, VPC, IAM roles, app Secrets Manager secrets, and CloudWatch resources. Three resources created outside OpenTofu are NOT deleted: the GitHub repository, the infrastructure variables Secrets Manager secret (<project>-infrastructure-variables), and the S3 Tofu state bucket.
Options
| Flag | Description | Default |
|---|---|---|
-p, --path <path> | Path to the project root containing the /infra folder. | current directory |
--github-token <token> | GitHub personal access token (overrides .fuel-credentials). | — |
--github-username <username> | GitHub username (overrides .fuel-credentials). | — |
--github-organization <org> | GitHub organization (overrides .fuel-credentials). | — |
--aws-access-key-id <key> | AWS Access Key ID (overrides .fuel-credentials). | — |
--aws-secret-access-key <secret> | AWS Secret Access Key (overrides .fuel-credentials). | — |
--aws-region <region> | AWS region (overrides .fuel-credentials). | — |
Examples
Destroy all infrastructure for the current project
fuel infra:destroyDestroy infrastructure for a specific project
fuel infra:destroy --path /path/to/projectLive Demo
Simulated terminal output for fuel infra:destroy. Press replay to restart.
fuel infra:destroy
$