1. Packages
  2. Splunk Provider
Splunk v1.2.14 published on Monday, Nov 18, 2024 by Pulumi

Splunk Provider

splunk logo
Splunk v1.2.14 published on Monday, Nov 18, 2024 by Pulumi

    Installation

    The splunk provider is available as a package in all Pulumi languages:

    Overview

    The Splunk provider can interact with the resources supported by Splunk. The provider needs to be configured with the proper credentials before it can be used.

    Example Usage

    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: nodejs
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: python
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: dotnet
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: go
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: yaml
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: java
    config:
        splunk:insecureSkipVerify:
            value: true
        splunk:password:
            value: changeme
        splunk:url:
            value: localhost:8089
        splunk:username:
            value: admin
    

    Configuration Reference

    Below arguments for the provider can also be set as environment variables.

    • url or SPLUNK_URL - (Required) The URL for the Splunk instance to be configured. (The provider uses https as the default schema as prefix to the URL)
    • username or SPLUNK_USERNAME - (Optional) The username to access the Splunk instance to be configured.
    • password or SPLUNK_PASSWORD - (Optional) The password to access the Splunk instance to be configured.
    • authToken or SPLUNK_AUTH_TOKEN - (Optional) Use auth token instead of username and password to configure Splunk instance. If specified, auth token takes priority over username/password.
    • insecureSkipVerify or SPLUNK_INSECURE_SKIP_VERIFY - (Optional) Insecure skip verification flag (Defaults to true)
    • timeout or SPLUNK_TIMEOUT - (Optional) Timeout when making calls to Splunk server. (Defaults to 60 seconds)

    (NOTE: Auth token can only be used with certain type of Splunk deployments. Read more on authentication with tokens here: https://docs.splunk.com/Documentation/Splunk/latest/Security/Setupauthenticationwithtokens)

    splunk logo
    Splunk v1.2.14 published on Monday, Nov 18, 2024 by Pulumi