Skip to content

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

Closed
magic-peach wants to merge 1 commit intoManoj-14:masterfrom
magic-peach:master
Closed

[Enhancement] Add Initialization and Teardown Scripts for Terraform#63
magic-peach wants to merge 1 commit intoManoj-14:masterfrom
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

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

- 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

🚫 Pull Request Policy Violation

Hi @magic-peach, thanks for your contribution!

Direct PRs to the master branch are not allowed. Please close this PR and target the stage branch instead for review.

@github-actions github-actions bot closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add Initialization and Teardown Scripts for Terraform

1 participant