Using this branch, I have created an ec2 instance in AWS and installed the Splunk universal forwarder using terraform.
All the steps are performed in ec2.tf
- Generated the key pair to access the aws.
- Created an ec2 instance
- Using remote-exec, download, untar and start the splunk universal forwarder in the created ec2 instance
Future steps
- Install the splunk enterprise using the same steps.
- Using local-exec to run the ansible-playbook to configure the splunk instance