npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

aws-slack-cost-reporter

v0.0.4

Published

Keeping an eye on budgets is crucial when working in the cloud. Otherwise, the bill might be a big surprise. Of course, configuring budgets is one way to cover this, but I decided to get notified on a regular basis with the amount of the current bill & th

Downloads

267

Readme

AWS Slack Cost Reporter

Keeping an eye on budgets is crucial when working in the cloud. Otherwise, the bill might be a big surprise. Of course, configuring budgets is one way to cover this, but I decided to get notified on a regular basis with the amount of the current bill & the current forecast.

This is the module with all resources to send billing reports daily to slack.

Usage

To use this construct, it is required to authenticate the target AWS account with the slack workspace. To do so, follow the steps in the next section.

So far, the module is published only as a node package. If python & Java support would be appreciated, please open an issue. For installation instructions, please go to Installation.

Preparation

To authenticate the AWS account with the slack workspace, navigate to the ChatBot service page and configure a new slack client. This will redirect to slack and ask for permissions. It is required to allow access, to make this work. Otherwise, the deployment might fail with the error message "Invalid request provided: AWS Chatbot can't create the configuration because Slack workspace *** is not authorized with AWS account ***".

Installation

To use this construct exposed of this module, install the dependency in your CDK module, by executing

yarn add aws-slack-cost-reporter
npm install aws-slack-cost-reporter

After that, the construct can be instantiated with the stack. Make sure that the workspaceId matches the authenticated workspace. The value can be taken from the Configured Clients page. Copy the channel ID from the slack channel details.

After the deployment, inviting the slackbot into the slack channel is crucial. To do so, type invite @aws as message in that channel. After this, it is possible to receive test messages, sent on the specified schedule.

const stack: cdk.Stack;

new SlackCostReporter(stack, "SlackCostReporter", {
  slackChannelId: "***",
  slackWorkspaceId: "***",
});

Further Reading