معرفی شرکت ها


cdk-daily-spend-to-slack-0.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

daily-spend-to-slack
ویژگی مقدار
سیستم عامل -
نام فایل cdk-daily-spend-to-slack-0.0.3
نام cdk-daily-spend-to-slack
نسخه کتابخانه 0.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Tom Stroobants<tom@stroobants.dev>
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/stroobants-dev/daily-spend-to-slack.git
آدرس اینترنتی https://pypi.org/project/cdk-daily-spend-to-slack/
مجوز MPL-2.0
# Daily spend to slack A construct that deploys a CloudWatch cronjob that will trigger a Lambda that will fetch the yesterday usage of AWS and send it to a SNS as a spoofed ECR CloudWatch event that can be parsed by AWS Chatbot and send to Slack. Yes, that was a mouthful. But the general idea is that to create a FinOps/Cost optimization culture in your team, your team also needs to know what they are spending. That is why I created this. This construct will deliver the yesterday usage to your slack channel of choice. This can also be a private channel. ![Example of Daily Spend Bot](https://github.com/stroobants-dev/daily-spend-to-slack/raw/main/images/slackexample.png) ## Installation ### Manual steps Your AWS account must be connected with your Slack channel. This **can't be done by IaC** but involves manual steps. 1. Follow [the steps of Step 1](https://docs.aws.amazon.com/chatbot/latest/adminguide/getting-started.html#chat-client-setup) in the category "Setting up AWS Chatbot with Slack" ### CDK steps ```python # Example automatically generated from non-compiling source. May contain errors. 'use strict'; import { App, Stack } from 'aws-cdk-lib'; import { Schedule } from 'aws-cdk-lib/aws-events'; import { DailySpendToSlack } from './index'; const app = new App(); const stack = new Stack(app, 'DailySpendToSlack'); new DailySpendToSlack(stack, 'DailySpendToSlack', { schedule: Schedule.cron({ minute: '0', hour: '9' }), slackWorkspaceId: '', slackChannelId: '', slackChannelName: '', accountName: 'stroobants.dev', }); ``` #### Parameters * `schedule`: Schedule - The schedule it should run on, for example `Schedule.cron({ minute: '0', hour: '9' })` means everyday at 09:00 UTC * `slackWorkspaceId`: string - The ID that AWS generates for (see picture below) * `slackChannelId`: string - The ID of the Slack Channel (Open slack, right-click on the channel you want the bot in, Copy link) -> `https://cloudar.slack.com/archives/{slackChannelId}`) * `slackChannelName`: string - The name of the Slack channel (this will be used to generate the Configuration name) * `accountName`: string - You can give the bot a recognizable name, lowercase, max 30 and only `.-` allowed (could be more but that is what I tested) ![your workspace](https://github.com/stroobants-dev/daily-spend-to-slack/blob/main/images/workspace-id.png) ## License [Mozilla Public License 2.0](https://choosealicense.com/licenses/mpl-2.0/)


نیازمندی

مقدار نام
<3.0.0,>=2.0.0 aws-cdk-lib
<11.0.0,>=10.0.5 constructs
<2.0.0,>=1.49.0 jsii
>=0.0.3 publication


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl cdk-daily-spend-to-slack-0.0.3:

    pip install cdk-daily-spend-to-slack-0.0.3.whl


نصب پکیج tar.gz cdk-daily-spend-to-slack-0.0.3:

    pip install cdk-daily-spend-to-slack-0.0.3.tar.gz