- Implemented a new Lambda function `telegram-notifier` that subscribes to an Amazon SNS topic for security alerts.
- The function receives structured notifications from the SNS topic and sends them directly to a specified Telegram chat in a monospaced format.
- Added error handling for missing Telegram bot token and chat ID.
- Formatted messages for better readability in Telegram, including incident severity, type, ID, status, source IP, and affected resource.
- Created a new Python handler file for the Telegram notifier functionality.
- Added handler.py to block malicious IPs by creating DENY rules in the target Network ACL.
- Included functionality to validate public IPs, manage rule numbers, and log actions to S3.
- Enhanced incident response by notifying via SNS and saving evidence of actions taken.
feat: Create notify-alert playbook for structured incident notifications
- Developed handler.py to receive incidents from SQS and publish structured alerts to SNS.
- Implemented logging of operational evidence in S3 for various incident types.
- Ensured support for multiple incident types with appropriate fields for each.
feat: Add user data script for EC2 instance setup
- Created user_data.sh.tpl to automate the installation of necessary packages and configuration of the corporate portal.
- Configured Nginx as a reverse proxy for the application and set up CloudWatch Agent for log management.
chore: Add example terraform variables file
- Introduced terraform.tfvars.example to provide a template for required variables.
- Included descriptions and default values for easier configuration.
chore: Define variables for Terraform configuration
- Created variables.tf to manage project-specific configurations and constraints.
- Included validation rules for critical variables to ensure correct input.