iandees / aws-billing-to-slack

Send a daily AWS cost report to a Slack channel of your choice.
MIT License
223 stars 84 forks source link

Added support for Dimension selection and MS Teams sending. #22

Closed stevemac007 closed 2 years ago

stevemac007 commented 2 years ago

You can now deploy the function and override the dimension the cost data is grouped by.

For example, I deploy this as follows.

serverless deploy --stage="service" \
    --param="group=SERVICE" \
    --param="group_length=20" \
    --param="teams_url=https://abc.webhook.office.com/webhookb2/<hook> \

serverless deploy --stage="account" \
    --param="group=LINKED_ACCOUNT" \
    --param="group_length=10" \
    --param="teams_url=https://abc.webhook.office.com/webhookb2/<hook>" \