Skip to content

Commit

Permalink
Remove dead code, unused files, and tracked build artifacts
Browse files Browse the repository at this point in the history
Dead root-level Terraform (ECR Public - never used, doesn't work in GovCloud):
- main.tf: aws_ecrpublic_repository resource (actual ECR is private, created by packer-pipeline)
- variables.tf: variables for the dead ECR public resource
- backend.tf: already removed upstream
- varfiles/: tfvars for dead root terraform

Dead/obsolete files from upstream HappyPathway template:
- app.py: old Lambda entrypoint (actual handler: template_automation/app.py)
- __init__.py: empty root-level file, no purpose
- Dockerfile: explicitly marked DEPRECATED in header (build uses packer)
- setup.py: only used by deprecated Dockerfile, had wrong pydantic>=2.0
- playbook.yml: Ansible playbook not referenced by packer build
- push.sh: one-time repo push script, already used
- cloudformation-template.yaml: old v1 CFN template (replaced by service-catalog/product-template.yaml)

Tracked build artifacts that should never have been committed:
- docs/venv/: entire Python virtualenv (1.3M+ lines)
- template_automation.egg-info/: setuptools build metadata
- **/__pycache__/*.pyc: compiled Python bytecode

Fixes:
- requirements.txt: pydantic>=2.0.0 -> pydantic>=1.10,<2.0 (codebase uses v1 API)
- Makefile: removed 'pip install -e .' (setup.py no longer exists)
- .gitignore: comprehensive patterns for .terraform*, varfiles/, venv/, *.pyc, *.egg-info/
- .code-workspace: added terraform-service-catalog-census repo
  • Loading branch information
Your Name committed Feb 23, 2026
1 parent 9f26c75 commit 5fc3708
Show file tree
Hide file tree
Showing 8,482 changed files with 26 additions and 1,377,433 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 22 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Packer pipeline zip files
template-automation-lambda-builder.zip
# Packer pipeline zip files
eks-terragrunt-repo-generator-builder.zip
service-catalog-repo-generator-builder.zip
# Build artifacts
*.zip

# Terraform
.terraform/
.terraform.lock.hcl
terraform.tfstate
terraform.tfstate.backup
terraform.tfstate.d/
terraform_data_dirs/
varfiles/

# Python
__pycache__/
*.pyc
*.pyo
*.egg-info/
.pytest_cache/
build/
dist/
venv/
docs/venv/
34 changes: 0 additions & 34 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ all: test
# Install dependencies
install:
$(PIP) install -r $(REQUIREMENTS)
$(PIP) install -e .

# Run all tests
test: test-unit test-integration
Expand Down
Empty file removed __init__.py
Empty file.
Binary file removed __pycache__/__init__.cpython-311.pyc
Binary file not shown.
46 changes: 0 additions & 46 deletions app.py

This file was deleted.

108 changes: 0 additions & 108 deletions cloudformation-template.yaml

This file was deleted.

Loading

0 comments on commit 5fc3708

Please sign in to comment.