Receive AWS Budgets Alerts

It is possible to start receiving your AWS Budgets alerts in both Slack and Amazon Chime through the help of the AWS Chatbot.

It allows you to get AWS Budgets alerts sent directly to your designated Amazon Chime chat room or Slack channel.

Step 1: How to edit a budget for adding AWS Budgets Alerts?

  1. Login to the AWS Management Console. Go to the Billing and Cost Management console using the following link https://console.aws.amazon.com/billing/.
  2. From navigation pane, click on Budgets.
  3. When the page for Budgets opens, select which budget you’ like to edit from your listed budgets.
    AWS Budgets Alerts - Select Budget

    AWS Budgets Alerts – Select Budget

     

  4. Click on Edit budget.
    AWS Budgets Alerts - Edit Budget

    AWS Budgets Alerts – Edit Budget

     

  5. Make changes to the necessary parameters, but the budget name cannot be changed.
    AWS Budgets Alerts - Change Parameters

    AWS Budgets Alerts – Change Parameters

     

  6. Select the option Configure alerts.
    AWS Budgets Alerts - Configure Alerts

    AWS Budgets Alerts – Configure Alerts

     

  7. Click on Confirm budget.
  8. Click Done.

 

Step 2: For the sake of starting to get AWS Budgets Alerts in both slack and Amazon Chime, go over the below procedure:

  1. After creating a budget follow the steps for Editing a budget above and click on Configure alerts.
  2. Add an SNS topic to be an alert recipient for a particular alert or set of alerts.
  3. Click on Confirm Budget.
  4. Click on Done.
  5. Head straight to the AWS Chatbot console.
    AWS Budgets Alerts - Chatbot Console

    AWS Budgets Alerts – Chatbot Console

     

  6. Click on your chat client.
    AWS Budgets Alerts - Configure New Client

    AWS Budgets Alerts – Configure New Client

     

  7. Select the option of Configure.
  8. Select the option of Slack workspace.

    AWS Budgets Alerts - New Slack

    AWS Budgets Alerts – New Slack

  9. Select a specific channel type.
    • Public: For all the people to view or join
    • Private: Can only be viewed by those who are invited
  10. Either choose to go with an already existing IAM role for the Chatbot to assign. Otherwise, start creating a new IAM role.
  11. Select a specific role name.
  12. Pick which Amazon SNS Region you want.
  13. Choose an SNS topic.

Keep in mind

Various SNS Topics and Regions are capable of receiving AWS Budgets alerts.

A minimum of one of the SNS topics needs to be the same as the SNS topic or topics of the budget or set of budgets that you have.

  1. Click on Configure.

 

Step 3: Creating an Amazon SNS topic for you AWS Budgets Alerts notifications

For creating an Amazon SNS notification topic then granting it permissions, go over the below procedure:

  1. Login to the AWS Management Console and head straight to the Amazon SNS console using the following link https://console.aws.amazon.com/sns/v3/home.
  2. From navigation pane, click on Topics.
  3. Select the option of Create topic.
  4. In the section of Name, type in a special name for your notification topic.
  5. It is optional to enter a Display name which will be shown upon receiving a notification.
  6. For Access policy, select the option of Advanced.
  7. Inside the policy text field, look for “Statement”: [, and add after it, the below text:
{  "Sid": "E.g., AWSBudgetsSNSPublishingPermissions",  "Effect": "Allow",  "Principal": {    "Service": "budgets.amazonaws.com"  },  "Action": "SNS:Publish",  "Resource": "your topic ARN"},
  1. Change the g., AWSBudgetsSNSPublishingPermissions and add a string instead. Remember that the Sid needs to be unique in your policy.
  2. Select the option of Create topic.
  3. From the section of Details, save your ARN.
  4. Select the option of Edit.
  5. In the section of Access policy, change your topic ARN and enter instead the Amazon SNS topic ARN which you saved in step 10.
  6. Select the option of Save changes.

You can now see your topic listed on the Topics page along with the other available topics.

Step 4: Enabling the compatibility between AWS Budgets and encrypted SNS topics to get AWS Budgets Alerts

  1. Create a symmetric or asymmetric CMK.
  2. Enter the below text into the CMK’s policy.
{    "Version": "2012-10-17",    "Statement": [{        "Effect": "Allow",        "Principal": {            "Service": "budgets.amazonaws.com"        },    "Action": [        "kms:GenerateDataKey*",        "kms:Decrypt"        ],    "Resource": "*"    }]    }
  1. Now, Enable your SNS Topic’s SSE (Encryption).

Keep in mind

Ensure the fact that you’re utilizing the exact CMK which is capable of granting AWS Budgets the permissions for publishing to encrypted SNS topics.

  1. Select the option of Save Changes.

AWS Billing Alarms


AUTHOR