Repository created for training purpose. And to be analyzed after that using a SIEM system:
The infrastructure includes:
- Firewall: AWS Network Firewall and Security Groups on the instances.
- Linux server with Ubuntu AMI.
- RDS service.
- Linux server wuth Amazon Linux AMIA.
- Windows server with Windows Server 2016 AMI
This repository contains Terraform code to provision and manage infrastructure on Amazon Web Services using Infrastructure as Code (IaC) principles.
Before you begin, ensure you have the following tools installed:
- Terraform
- AWS CLI
- An AWS account and the associated credentials that allow you to create resources. These credentials must be configured for the AWS provider (see Authentication and Configuration section in AWS terraform provider documentation.)
Repository which include basic infrastructure to deploy a SIEM: Infrastructure for Wazuh SIEM
- Clone this repository to your local machine:
git clone git@github.com:xavierventeo/cybersecurity-lab.git
- Navigate to the repository directory:
cd cybersecurity-lab
- Initialize Terraform:
terraform init
-
Configure terraform variables with your own values.
Pay attention to configure allowed_ip_address variable in order to allow external access to your own IP
cp terraform.tfvars.example terraform.tfvars
vi terraform.tfvars
- Plan the infrastructure changes:
terraform plan
- Apply the infrastructure changes to your AWS Account:
terraform apply
Confirm the action by typing 'yes' when prompted.
To destroy the infrastructure provisioned by Terraform, run:
terraform destroy
Confirm the action by typing 'yes' when prompted.