Cannot connect clotho when Billing Download Job for AWS

ParkHyunSun
Tera Expert

Hello team members,

I am trying to use cloud cost management in PDI.

I have created an account, policies, and reports in the AWS console.

I have granted admin access role to AWS policies and additional policies as stated in the documentation.

ParkHyunSun_0-1705659754592.png

 

I discovered "cloud discovery" and verified that the status is OK.

I then went to the Cloud Cost Management workspace and attempted to do billing download job.

When I clicked on Test Connection before 'Execute Now', I got a message that the MetricBase connection failed.

ParkHyunSun_2-1705659982908.png

 

So I tested the connection in the MetricBase configuration and it failed.

ParkHyunSun_1-1705659950763.png

 

To check the progress after execution, I ignored the test connection and clicked Execute Now, but I got an error while running the script - "AWSGetCostUsageReportTimeUnit" Detail:null.

ParkHyunSun_3-1705660041307.png

 

Is there any solution that I can do?

I haven't found a solution in the documentation so far.

Thanks.

1 ACCEPTED SOLUTION

The ITOM Bart
Tera Guru

It needs to go successfully through all tests.

Zrzut ekranu 2024-02-13 121402.jpg

 

 

 

 

 

 

 

 

 

 

I had similar issues so I had to revise my permissions AWS-side and I even re-created API keys. Make sure you don't have any other setup that uses roles assumption. Also review your accesses, especially S3 bucket and verify service account. 

Please be aware if you have some Discovery Schedule with the same service account but different setup (different credentials or accessor account etc.) it overrides the record with what you have set up in the schedule so for example:
- Schedule 1 - user based access with admin - all accesses including billing - updates service account - then run billing schedule - everything works fine, discovery, billing and CPG
- Schedule 2 - role assumption / EC2 based access - permissions only for discovery (no read in S3 bucket, no write access for CPG etc.) - it will update service account and you have only access by what you have defined in cloud discovery wizard so no CPG and billing access unless you run schedule 1 and service account will be overwritten (or you overwrite it manually). 

View solution in original post

4 REPLIES 4

asdf10
ServiceNow Employee
ServiceNow Employee

Did you install metricbase ?

The ITOM Bart
Tera Guru

It needs to go successfully through all tests.

Zrzut ekranu 2024-02-13 121402.jpg

 

 

 

 

 

 

 

 

 

 

I had similar issues so I had to revise my permissions AWS-side and I even re-created API keys. Make sure you don't have any other setup that uses roles assumption. Also review your accesses, especially S3 bucket and verify service account. 

Please be aware if you have some Discovery Schedule with the same service account but different setup (different credentials or accessor account etc.) it overrides the record with what you have set up in the schedule so for example:
- Schedule 1 - user based access with admin - all accesses including billing - updates service account - then run billing schedule - everything works fine, discovery, billing and CPG
- Schedule 2 - role assumption / EC2 based access - permissions only for discovery (no read in S3 bucket, no write access for CPG etc.) - it will update service account and you have only access by what you have defined in cloud discovery wizard so no CPG and billing access unless you run schedule 1 and service account will be overwritten (or you overwrite it manually). 

I am facing same error in Azure billing download. 

 

bilalshakir_0-1723114995696.png

 

For Azure there is more complex setup and you require Enterprise Administrator access/license. That's only reason I don't have it in my lab because I use personal pay as you go subscription. 
https://docs.servicenow.com/bundle/washingtondc-it-asset-management/page/product/cloud-insights/conc...