Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the report-2 #38

Open
haewan opened this issue Aug 7, 2019 · 0 comments
Open

Error while running the report-2 #38

haewan opened this issue Aug 7, 2019 · 0 comments

Comments

@haewan
Copy link

haewan commented Aug 7, 2019

./run.py --billing work oscxxxx billing/xxxReport --ec2 work --xlsx-name builling

Processing billing data (1/5 - billing diff)...
Processing billing data (2/5 - instance history)...
Processing billing data (3/5 - ec2 last month)...
Traceback (most recent call last):
File "src/get_last_month_ec2_cost.py", line 38, in
instance_usage_records[(record['lineItem/UsageAccountId'], record['lineItem/ResourceId'], record['lineItem/AvailabilityZone'], record['pricing/term'], record['product/instanceType'])] += float(record['lineItem/UnblendedCost'])
KeyError: 'lineItem/ResourceId'
Processing billing data (4/5 - ebs last month)...
Traceback (most recent call last):
File "src/get_last_month_ebs_cost.py", line 41, in
ebs_usage_records[(record['lineItem/UsageAccountId'], record['lineItem/ResourceId'], record['product/region'])] += float(record['lineItem/UnblendedCost'])
KeyError: 'lineItem/ResourceId'
Processing billing data (5/5 - s3 cost)...
Generating xlsx file...
Traceback (most recent call last):
File "src/make_xlsx.py", line 630, in
main(name)
File "src/make_xlsx.py", line 619, in main
instance_summary(workbook, header_format, val_format)
File "src/make_xlsx.py", line 418, in instance_summary
with open(IN_EC2_BANDWIDTH_USAGE_LAST_MONTH) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'out/last-month/ec2_bandwidth.csv'

@haewan haewan changed the title error Error while running the report-2 Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant