How to Fetch your Digital Ocean Billing Info on Slack?
Have you ever wanted an easy way of displaying your DigitalOcean billing info on Slack? With Nimbella Commander, you can have your current bill and next month’s projected bill displayed using one command to your Slack workspace. This conveniently integrated DigitalOcean billing functionality will allow developers to have cost-visibility without having to navigate complex billing systems, which will benefit the entire organization in the long run.
By following these 7 simple steps, you can add Nimbella Commander to Slack and set it up for running this DigitalOcean billing command. Later on, I’ll show you how to restrict the access for this command, so that it is available only for the relevant people within your Slack workspace.
- Goto your DigitalOcean’s API section and generate a new token with the name of
digitaloceanApiKey. Copy this API token, you will be required to use this later.
- Add Nimbella Commander to your Slack workspace. Search
Nimbella Commanderin Slack’s app search section and proceed with it.
Alternatively, You can visit our official website and click the “Add to Slack” button.
- In order to get your DigitalOcean billing details, you’ll need to install the billing Command Set into your Nimbella app. Command Sets are a packaging specification for Slack commands, and a convenient way to share commands via GitHub or open source. Type
/nc csm_install billingin your slack’s channel or direct message.
- Next, we need to bind some secrets to the billing commands. Specifically, the API keys you generated earlier for the DigitalOcean API will be encrypted (outside of Slack) and attached to the slash command. To do this, type
/nc secret_createto bring up the Nimbella Secret Creator. We’re creating the secrets outside of Slack so that Slack will only see encrypted strings and not your API keys. When you run the secrets command, you will see an output that looks like this:
- Click on the Secret Creator link to be redirected to the page which encrypts your API keys.
- Add your Digital Ocean API Key and from Step 1 to the field in the Secret Creator as illustrated in the following figure. Next, click the “Make Secrets” button to generate the commands you’ll need to copy and paste into your Slack workspace.
- After clicking the “Make Secrets” button, the command you’ll need to run on your Slack page will appear. Copy the command paste them into Slack. This will take your API Key to apply them to your Nimbella app.
- Finally, run the billing Command Set’s command
/nc dobillto see your DigitalOcean billing info.
You likely don’t want everyone in your Slack team to run this command. Nimbella Commander offers a neat feature to allow only certain users to run specific commands. For example, you can restrict access to the DigitalOcean billing command to specific users using
/nc command_runners dobill + @user1 + @user2, substituting for “user1” and “user2” the Slack names of your teammates that should have access to the DigitalOcean billing details.
It’s worth also mentioning that you have access to an audit trail to see who’s run your commands. This is useful for administrators and team oversight where appropriate. Type
/nc command_log dobill
One last thing that’s important to know is that the code for the dobill command you import into Commander is yours to edit. If you type
/nc command_code dobill, you will receive a secure link that will allow you to edit the command.
Using Nimbella’s access control you can also limit who can view and edit the code that implements a particular command as well. The built-in Secret Creator means your sensitive data remains outside of Slack and accessible only to the code you run. And with Audit Logs, you have accountability and historical data readily available at your fingertips. These are powerful features of the Commander that don’t exist in Slack otherwise. For more information about Commander, visit our website. We’d also love to hear from you via our community Slack channel or on GitHub.
If you wish to add Commander to your Slack account, then click this link to get started!
- Nimbella joins DigitalOcean
- No infrastructure, just code. Learn the simplicity of serverless
- How to Migrate from Containers to Nimbella Serverless Architecture
- Kubernetes in simple words: explained by Eric Swildens
- How to optimize Kubernetes costs with Nimbella
- Step by step guide on how to port from AWS to Nimbella
- How to build and improve your serverless APIs
- Simplifying Kubernetes For Developers
- FaaS Wars Season 2 - Step By Step Instructions
- What is Nimbella and what does it offer?
- Results and Feedback of FaaS Wars - May the FaaS Be with You!
- 28 Serverless Gurus and experts One Must Follow in 2021
- The Faas Wars Alert!
- CI/CD pipeline with GitHub Actions
- How to deploy Node.js functions on Nimbella
- Kick-Start Your Serverless Journey
- AWS re:Invent Serverless Highlights
- Opportunities in the Wake of the AWS Juggernaut
- FaaS Wars: Serverless & Virtual Robot Competition
- #DeveloperIPL Online Hackathon Results & Feedback on Nimbella's Integration for Postman
- How to connect to the 3rd party database such as MySQL at Nimbella (example in Java)
- What can you do with the Nimbella Workbench?
- Deploy your Shopify Storefront to Nimbella
- Not All Serverless Platforms Are Created Equal
- Nimbella + Netlify: Uplevel Your Development Speed
- How we learned to Jamstack, Our Caputron story | Nimbella.com®
- Commander for Microsoft Teams - Your Custom Bot that runs on your Command!
- How to Build a Stateful Cloud App on Nimbella vs. AWS
- Starter Kit and Resources to Build a Serverless Cloud Application
- How to Build Serverless Slack Apps and Commands
- How to Set up your Serverless Environment and Get Started in Less than 2 Minutes!
- How to Quickly Deploy Stateful Serverless Apps with Nimbella?
- What is Serverless Computing? 3 reasons to start now
- How to Build a Serverless Slack App in Minutes.
- How to Manage your Netlify Website from Slack?
- How to Build a Serverless Slack Command in minutes
- How to Build a Stateful Serverless Cloud Web Application?
- How to Create an Optical Character Recognition (OCR) Application?
- Development at the Speed of Innovation – Nimbella, the Serverless Cloud
- Software Security Features on Enterprise Serverless Slack Apps Enabled by Nimbella Commander
- Coronathon India’s first demo day has 18 projects to help fight COVID-19
- See the time in different cities on Slack with Nimbella Commander
- Greet your friends in their native language in Slack with Nimbella Commander
- How to Fetch your Digital Ocean Billing Info on Slack?
- How to Stay Updated with Coronavirus Statistics on Slack?
- How to Fetch your AWS Billing Info on Slack?
- Get your Datadog billing info in Slack with Nimbella Commander
- Serverless Slack Apps and Slash Commands
- How to use Slack Effectively with Nimbella Commander?
- How to Create a multi-user Chatroom Hosted on Serverless Cloud?
- Using Docker actions, running Golang, and other fun things with OpenWhisk
- The duality between serverless functions and APIs
- Serverless HTTP handlers with OpenWhisk
- Serverless functions in your favorite language with OpenWhisk
- Run Swiftly: precompiled Swift actions
- Performance debugging for serverless functions using the Cloud Shell
- Locally debugging OpenWhisk actions
- Composing functions into applications
- A Serverless Composition of Functions
- The Serverless Contract
- The dawn of the Cloud Computer
- Security and Serverless Functions