Skip to content

Github action to generate AWS cost data: Managed by opg-org-infra & Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/opg-infra-costs-action

Repository files navigation

OPG Infra Costing Action

Contains a Python application to fetch data from the AWS Cost Explorer API for each AWS service for the account specified between the two the dates. This data is the converted and pused to a specificed metrics collection end point (such as OPG Metrics).

This application is the wrapped in a docker container (see the Dockerfile) so it can be utilised as a Github Action (see action.yml).

Notes & Assumptions

The python application presumes it is running as a pre-authorised session which can assume the role based (via --arn argument) - you will likely need to use another action to configure the environment for your workflow step.

Data is sent in chunks of 20 at a time, this is based on the limitation of the recieving tooling and may change later.

About

Github action to generate AWS cost data: Managed by opg-org-infra & Terraform

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages