Skip to main content

Amazon Billing

This guide contains information to set up a Amazon Billing Source in Vanus Connect.

Introduction

AWS Billing is an AWS service for monitoring and managing your cloud usage and costs. It provides comprehensive usage and expense data to help you optimize resources and control spending.

Amazon Billing Source is a connector provided by Vanus that retrieves daily or hourly spending information from Amazon Cloud Services and converts it into CloudEvents. To use cloud billing, you need to provide a user access key and secret key, which are required to authenticate and authorize access to your AWS account. By providing these keys, the Amazon Billing Source connector can access your billing information and retrieve the spending data from your AWS account.

Prerequisites

Getting Started

Step 1: Create a new AWS user

  1. Log in to the AWS Management Console using your root account credentials.

  2. Navigate to the IAM service by searching for IAM① and click the IAM② service.

aws-billing-source-1

  1. Click on the Users③ tab in the left navigation menu, and then click the Create user④ button.

aws-billing-source-2

  1. Write your User name⑤ and click Next⑥.

aws-billing-source-3

  1. Select Attach policies directly⑦, and click on Create policy⑧.

aws-billing-source-4

  1. Click on Choose a service⑨ to open the dropdown menu.

aws-billing-source-5

  1. Select Cost Explorer Service⑩.

aws-billing-source-6

  1. Search for the following policy: GetCostAndUsage⑪, tick the box⑫ to select it, and then press Next⑬ to proceed to the next page.

aws-billing-source-7

  1. Name⑭ your policy.

aws-billing-source-8

  1. Click Create policy⑮.

aws-billing-source-9

  1. Return back to your previous TAB.

aws-billing-source-10

  1. Refresh⑰ the policy list, search⑱ for your custom policy, check the box⑲ next to it to add it to your account, and then click on Next⑳.

aws-billing-source-11

  1. Review and press Create user㉑.

aws-billing-source-12

Step 2: Create an Access Key and Secret Access Key

  1. Now click on the user① you just created.

aws-billing-source-13

  1. Under Security credentials② scroll down the page to Access Keys, and Click Create access key③.

aws-billing-source-14

  1. Select Command Line Interface (CLI)④, tick the Confirmation box⑤ and click Next⑥.

aws-billing-source-15

  1. Click Create access key⑦.

aws-billing-source-16

  1. Download your Access key and Secret access key by clicking the Download .csv file⑧ button, and then click Done⑨.

aws-billing-source-17

Step 3: Config your connection

  1. Write a Name① for your connection.

aws-billing-source-18

  1. Enter your Access Key ID② and Secret Access Key③, specify the preferred event Fetching Time④, and then proceed by clicking on Next⑤.

aws-billing-source-19

Learn more about Vanus and Vanus Connect in our documentation