Cloned from: https://github.com/splunk/acs-privateapps-demo
This repository demonstrates how one can use splunkcloud's self-service apis to build a pipeline that can continuously deploy Splunk apps to Splunk Enterprise Cloud stacks.
The pipeline primarily consists of 4 steps:
- Build cloudctl (
make build-cloudctl
), the CLI that will be used for the remaining steps -- this step assumes that go is installed. - Package the app artifacts into a tar gz archive (
make generate-app-package
) -- this step assumes there is a top-level directory calledtestapp
which contains the app. - Upload the app-package to the app inspect service and wait for the inspection report (
make inspect-app
) -- this step assumes the existence of the environment variables defined below. - If the inspection is successful, install/update the app on the stack using the self-serive apis (
make install-app
) -- this step also assumes the existence of the environment variables defined below.
The steps of the pipeline can be found here.
The environment needs to be configured with a few variables. If leveraging this from a Github repository using Github Actions workflows, the variables will need to be set up as secrets. If running this locally, these values simply need to be set as environment variables:
- SPLUNK_COM_USERNAME / SPLUNK_COM_PASSWORD - the splunk.com credentials to use for authentication to perform app inspection.
- STACK_NAME - the name of the Splunk Cloud stack where you want to install/update the app package on.
- STACK_TOKEN - the jwt token created on the stack.
- ACS_URL -
https://admin.splunk.com