To allow CPM Cost Explorer calculations
in AWS, users must add cost allocation tags once.
To
activate user cost allocation tags:
a.
Log in to the AWS Management Console at https://console.aws.amazon.com/billing/home#/.
b.
Open the Billing and Cost Management console.
c.
In the navigation pane, choose Cost Allocation Tags.
d.
Choose the following tags to activate,
and then select Activate:
·
cpm_server_id
·
cpm_policy_name
If you have updated the CPM permission files for the CPM
instance role and all users and are still receiving either no data in the CPM
Console or specific access denied messages, then you need to try verifying the
role/user in the AWS IAM Policy Simulator. This can be found at this link: https://policysim.aws.amazon.com/home/index.jsp?#
To verify that the CPM role has sufficient permissions for
cost explorer please select under
Users, Groups, and Roles in the drop-down box “Roles”. Then select the CPM instance role. In this
example its named “joes”.
Under the IAM Polices make sure all polices attached
to the role are selected.
In the Policy Simulator section of the screen under Select Service choose AWS Cost Explorer and in the Select Actions drop down check the checkbox next to GetCostAndUsage.
Then click on Run Simulation.
If the test of the IAM role permission is successful you should get under the Permission column Allowed 1 matching statements message.
You should add a new service and action for the following
two services/Actions and run the simulator.
ec2:GetConsoleOutput
ce:GetCostAndUsage
pricing:GetProducts
Also, You can use AWS CloudTrail logs to search for specific
events related to Cost Explorer by filtering the logs. Open the CloudTrail
dashboard then change to Event History, then choose “Event
Name”, and type GetCostAndUsage.
You should get a filtered log and you can look at the individual messages
by clicking on them for possible error messages.
Please see this link for how to collect logs from the CPM
instance.