Code Monkey home page Code Monkey logo

awssplunkinstance's Introduction

AWS Splunk Instance

Creates a test splunk instance in AWS

Details:

  • Uses the current (static set) Splunk Enterprise AMI
  • Creates the instance in the default VPC
  • Creates a hosted R53 Zone for dns and cert mgmt
  • Creates 2 classic LB's (one for Web interface, one for HEC interface)
  • Uses provided shell script to install and configure apache reverse proxy (work around for ssl offload SPL-79993)
  • Creates valid Certs for both interfaces (required for HEC to work)

Inputs:

  • variable "region" { default = "us-east-1" }

  • variable "profile" { description = "AWS credentials profile you want to use" }

  • variable "domain_name" { description = "Provide the TLD for your test Splunk Instance ex. "example.com"" }

  • variable "ssh_pub_key" { description = "Provide ssh public key" }

  • variable "terraform_plublic_ip" { description = "Provide the public IP that terrafrom is running from and where you will be accessing the splunk web interface in CIDR notation "1.1.1.1/32"" }

  • variable "splunk_hec_sources" { description = "source IPs used in secuirty groups for securing the Splunk HEC LB endpoint" default = ["34.238.188.128/26", "34.238.188.192/26", "34.238.195.0/26"] }

Directions:

  • The current default security group (variable "splunk_hec_sources") for the HEC LB endpoint is for aws firehose in us-east-1. update as needed
  • Run the terraform code
  • While its running you must update your domain registrar with the name servers provided with your new R53 hosted zone. I used a free temp domain (ex freenom). You will have to be logged into the AWS console to get the Name Servers. If you didnt update your Name Servers in time the code will fail but after doing so rerun the terraform code
  • Log into splunk web interface as username is "admin" and terraform will ouput the password (ami instance id)
  • provide a license (restart)
  • enable HEC if needed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.