-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/billing #361
Feature/billing #361
Conversation
Budgets can be made for function + associated resources or for all podpac created resources listed under an AWS account. Budget tracking/filtering is done through special tags created at resource generation. I anticipate corner cases for resources that were not created at the same time. This will need to get thoroughly tested before we make any promises about budgeting capabilities. For now this more of potential notification than a guaranteed notification
@mpu-creare I don't have a test case for this yet. I will try to find one tomorrow, but I think we should include in this release. |
Testing procedure:
|
it looks like it is compounded daily. Will check back tomorrow |
This seems pretty awesome. Does Python also report the current budget spending? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me. I'm a little worried about all the attributes, the Lambda
Node is getting rather bloated. At least its all in one place as opposed to having to search for it on AWS...
it does, but its hidden on the |
could you just make it part of the |
roger
|
…inted message that budget tags MUST be activated
See 57b2a52 for cost allocation describe method. Merging |
Enable budgeting for podpac resources through the
aws
module.Budgets can be made for function + associated resources or for all podpac created resources listed under an AWS account. Budget tracking/filtering is done through special tags created at resource generation:
{
_podpac_resource
:true
}{
_podpac_resource_hash
:hash
}I anticipate corner cases for resources that were not created at the same time. This will need to get thoroughly tested before we make any promises about budgeting capabilities. For now this more of potential notification than a guaranteed notification.
To use the feature, create the settings:
Also documented here: https://github.com/creare-com/podpac-examples/blob/develop/notebooks/developer/aws-lambda-tutorial.ipynb
Then use the
aws.Lambda
node as before.See https://github.com/creare-com/podpac-examples/blob/develop/notebooks/developer/test/test-lambda.ipynb for an example of how to budget for all podpac resources created through the
aws
module.