Skip to content

Slack command using Cisco Prime API to find people

License

Notifications You must be signed in to change notification settings

LewisLebentz/WhereIs

Repository files navigation

WhereIs

WhereIs - Slack Command


Build Status


Slack slash command using Cisco Prime API to find people.

Built with the Serverless Framework, using AWS Lambda and API Gateway.

Setup

  1. Clone the WhereIs repository and enter the directory.

    git clone https://github.com/LewisLebentz/WhereIs.git && cd WhereIs
    
  2. If you haven't already, install the Serverless Framework.

    npm install serverless -g
    
  • You will need AWS credentials setup on your machine before being able to run Serverless commands. Follow the guide here.
  1. Install the dependencies.

    npm install --save
    
    pip install pipenv
    
  2. Update serverless.yml changing the region, securityGroupIds and subnetIds where applicable.

  3. Update handler.py changing the url variable with your Cisco Prime IP/address.

  4. Run the command to deploy.

    sls deploy
    

Slack Setup

  1. Login to Slack and navigate to the Create a Slack App page.

  2. Give your app a name and choose the workspace you'd like to deploy it to.

  3. Under 'Features' navigate to 'Slash Commands' and select 'Create New Command'. Call the command whatever you like, and for the Request URL enter the URL returned when the sls deploy command finished executing. Fill in the Description and Hint with something meaningful and save.

  4. Now, under 'Settings' choose 'Install App' and install it to your workspace.

  5. Finally, in Slack run /whereis firstname.surname and it should return the location from Prime!

About

Slack command using Cisco Prime API to find people

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages