-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
MediumSWoC26SWoC26SWoC26automationautomateautomateenhancementNew feature or requestNew feature or requestterraformupdates on infrastructureupdates on infrastructure
Description
Add Initialization and Teardown Scripts for Terraform
Issue Description
Create init.sh and teardown.sh scripts to automate Terraform initialization and cleanup.
Current Behavior
Users must manually run:
terraform init
terraform fmt
terraform validate
terraform plan
terraform apply
terraform destroyExpected Behavior
-
init.sh should:
- Initialize Terraform
- Validate configuration
- Format code
- Exit on error
-
teardown.sh should:
- Destroy all Terraform-managed resources
- Exit on error
Proposed Solution
Add two executable scripts under scripts/:
scripts/init.sh
#!/bin/bash
set -e
echo "Initializing Terraform..."
terraform init -input=false
echo "Validating configuration..."
terraform validate
echo "Formatting code..."
terraform fmt -recursive
echo "Initialization complete."scripts/teardown.sh
#!/bin/bash
set -e
echo "Destroying Terraform-managed resources..."
terraform destroy --auto-approve
echo "Teardown complete."Implementation Requirements
- Create
scripts/init.shwith executable permissions - Create
scripts/teardown.shwith executable permissions - Ensure both scripts use
set -efor error handling - Update README with usage instructions
Acceptance Criteria
-
./scripts/init.shruns without errors and prepares the environment -
./scripts/teardown.shcleans up all resources without errors - Documentation updated to reference both scripts
Metadata
Metadata
Assignees
Labels
MediumSWoC26SWoC26SWoC26automationautomateautomateenhancementNew feature or requestNew feature or requestterraformupdates on infrastructureupdates on infrastructure
Projects
Status
In progress