AWS Cloud Billing
Configuration¶
Install Func¶
It is recommended to activate the Guance Integration - Extensions - DataFlux Func (Automata)
If you deploy Func yourself, refer to Self-deploying Func
Activate Script¶
Tips
- Prepare a qualified AWS AK in advance (in the IAM console, create an inline policy for the user that allows
Cost Explorer Serviceactions: tickGetCostAndUsageWithResourcesandGetDimensionValues).- Before the first collector run, open AWS Console → Amazon Cost Explorer → Cost Management → Preferences and enable “Hourly and Resource Level Data”, then wait 24 h for data to become available.
- The collector must set
account_nameandaccount_idinextra_tags.- To ensure accuracy, bill data is always collected for
T-1.
Activate Script in Automata¶
- Log in to the Guance console
- Click the 【Integration】 menu and select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
- Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
- Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
- Click the 【Integration】 button on the cloud account details page, find
AWS Cloud Billingin theNot Installedlist, and click the 【Install】 button to pop up the installation interface and install it.
Activate Script Manually¶
-
Log in to the Func console, click 【Script Market】, enter the Guance script market, and search for
integration_aws_billing_by_instance -
Click 【Install】, and enter the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create the
Startupscript set and automatically configure the corresponding startup script. -
After activation, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to see if there are any anomalies
- In Guance, check if the corresponding billing information exists in 「Cloud Billing / Billing Analysis」