Skip to content

Instantly share code, notes, and snippets.

@sean-smith
Last active April 28, 2022 18:31
Show Gist options
  • Save sean-smith/08df2d792f7ae6df36e0272bebe32060 to your computer and use it in GitHub Desktop.
Save sean-smith/08df2d792f7ae6df36e0272bebe32060 to your computer and use it in GitHub Desktop.

Cost Explorer with AWS ParallelCluster

Budgets allow you to track cost at the per-cluster basis, they do this by tracking tags applied automatically to EC2 Instances launched with pcluster.

This gives users a view of exactly how much a cluster costs overtime, it tracks:

  • EC2 Instances
  • EBS Volumes
  • FSx Lustre Volumes
  • EFS Volumes
  1. Activate the parallelcluster:cluster-name tag in the Billing Dashboard > Cost Allocation Tags

image

Wait 24 hours 📆 🥱

  1. Then go to Cost Explorer > Click on Tags on the right side and select parallelcluster:cluster-name and the cluster you wish to display the cost of. If you don't see the tag, it's most likely since it hasn't been 24 hours since you activated it 🥱.

image

You can group by Instance Type to breakdown cost by instance type, you can group by Service to break down costs between EC2, EBS, ect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment