deply/settings.txt file contains sensitive AWS credentials and should NEVER be committed to version control.
Add the following lines to your .gitignore file to protect sensitive information:
# Deployment credentials (CRITICAL - DO NOT COMMIT)
deply/settings.txt
# IDE and Editor files
.vscode/
.idea/
*.swp
*.swo
*~
# OS files
.DS_Store
Thumbs.db
# Node modules (if using npm for development)
node_modules/
# Log files
*.log
npm-debug.log*
# Environment files
.env
.env.local
.env.*.local
# Temporary files
*.tmp
*.tempSince the .gitignore file is currently blocked by .codeassistantignore, you need to manually add these entries:
- Open
.gitignorein your editor - Add the line:
deply/settings.txt - Save the file
- Verify with:
git status(settings.txt should not appear)
After updating .gitignore, verify that credentials are protected:
# Check if settings.txt is ignored
git check-ignore deply/settings.txt
# Should output: deply/settings.txtIf deply/settings.txt was previously committed to git, you need to remove it from history:
# Remove from git tracking (keeps local file)
git rm --cached deply/settings.txt
# Commit the removal
git commit -m "Remove credentials from version control"
# Push changes
git pushdeply/settings.txt.
For enhanced security, consider using environment variables instead of the settings file:
# Set environment variables
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_BUCKET_NAME="capacity-calculator"
export AWS_REGION="ru-central1"
# Run deployment
./deploy.shThe deployment script will automatically use environment variables if they are set.