In today's rapidly evolving technological landscape, organizations are increasingly embracing cloud migration to harness the benefits of scalability, reliability, and cost-efficiency. This document presents a comprehensive guide to migrating a Splunk application from an on-premises environment to the AWS cloud using the powerful combination of Terraform and GitLab. By leveraging Infrastructure as Code (IaC) principles and automated CI/CD pipelines, this migration process streamlines the deployment, management, and scaling of the Splunk application, while ensuring data integrity and security.