Skip to content

[Enhancement] Add Initialization and Teardown Scripts for Terraform#64

Merged
Manoj-14 merged 2 commits intoManoj-14:stagefrom
magic-peach:master
Feb 10, 2026
Merged

[Enhancement] Add Initialization and Teardown Scripts for Terraform#64
Manoj-14 merged 2 commits intoManoj-14:stagefrom
magic-peach:master

Conversation

@magic-peach
Copy link
Contributor

Summary

This PR adds automation scripts for Terraform infrastructure management as requested in issue #21.

Changes Made

  • Created scripts/init.sh - Automated Terraform initialization script
  • Created scripts/teardown.sh - Automated resource cleanup script
  • Made both scripts executable (chmod +x)
  • Updated README.md with usage instructions

Script Details

scripts/init.sh

  • Initializes Terraform with terraform init -input=false
  • Validates configuration with terraform validate
  • Formats code recursively with terraform fmt -recursive
  • Uses set -e for error handling (exits on any error)

scripts/teardown.sh

  • Destroys all Terraform-managed resources with terraform destroy --auto-approve
  • Uses set -e for error handling

Usage

# Initialize Terraform
./scripts/init.sh

# Clean up resources
./scripts/teardown.sh

Testing

Both scripts follow the exact specifications from the issue:

  • init.sh initializes, validates, and formats
  • teardown.sh destroys all resources
  • Both have executable permissions
  • Both use set -e for error handling
  • README updated with usage instructions

Closes #21

Manoj-14 and others added 2 commits January 1, 2026 16:29
- workflows are added
- minikube tunnling are added
- metric-server is added
- some devops optimisation
- Add scripts/init.sh for automated Terraform setup
- Add scripts/teardown.sh for automated resource cleanup
- Make both scripts executable
- Update README with usage instructions

Both scripts use `set -e` for error handling and provide
clear feedback during execution.

Closes Manoj-14#21

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Hi @magic-peach Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Manoj-14 Manoj-14 merged commit 8cc597a into Manoj-14:stage Feb 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants