Databus credentials are needed to establish secure connections for the Metering V2
        service to transmit metrics.
        
            Ensure that you have the following:
                    A Cloudera  user account that can be promoted
                        to Full Administrator role in Cloudera Manager . 
                    Grants to create API keys and Machine Users in Cloudera  User Management Service (UMS). 
                  
        
                Create a new Machine User by following Creating a machine user in
                        Cloudera  
                
                    note
                        
                            The particular machine user name is not important but will be needed
                                for the following commands. 
                            Make sure that the machine user is not deleted, to avoid losing
                                metering events, which is registered by the Metering Events Monitor
                                (MEM) service. 
                         
                      
             
                Retrieve the DatabaseUploader role CRN: 
                
                    cdp iam list-roles | grep “altus:role:DbusUploader” 
             
                Update machine user with DatabaseUploader role: 
                
                    cdp iam assign-machine-user-role --machine-user-name ***USER-NAME-FROM-STEP1***  --role ***CRN-FROM-STEP-2***  
             
                Create API Access Keys 
                
                    cdp iam create-machine-user-access-key --machine-user-name ***USER-NAME-FROM-STEP1***  
             
                Record the accessKeyId and the privateKey for
                    use later: 
                
                    {
    "accessKey": {
        "accessKeyId": "abc" ,
        "crn": "",
        "actorCrn": "",
        "creationDate": "",
        "status": "ACTIVE",
        "type": "V2"
    },
    "privateKey": "abc" 
}
 
             
                In the CRN value from the JSON in the previous step, record the region and the
                    account number. For example, the Region (us-west-1) and Tenant ID (215d3903-333d-45ae-8824-6a4a85e17e22 ) are
                    highlighted in the example CRN: 
                
                    crn:altus:iam:***REGION*** :***TENANT-ID*** :accesskey:***ACCESS-KEY***  
                
                    crn:altus:iam:us-west-1 :215d3903-333d-45ae-8824-6a4a85e17e22 :accesskey:b940b1ef-3ef7-425f-9140-2709990f544c