AWS meter-based pricing
Closed this issue · 3 comments
docktermj commented
For deployments listed in AWS Marketplace, utilize AWS Marketplace Metering Service integration as an alternative to Bring Your Own License (BYOL).
docktermj commented
Code examples:
Python
response = client.meter_usage(
ProductCode='string',
Timestamp=datetime(2015, 1, 1),
UsageDimension='string',
UsageQuantity=123,
DryRun=True|False,
UsageAllocations=[
{
'AllocatedUsageQuantity': 123,
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
]
)
Java
default MeterUsageResponse meterUsage(MeterUsageRequest meterUsageRequest)
- https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/marketplacemetering/MarketplaceMeteringClient.html#meterUsage-software.amazon.awssdk.services.marketplacemetering.model.MeterUsageRequest-
- Custom: https://docs.aws.amazon.com/marketplace/latest/userguide/java-integration-example-meterusage.html
- Hourly: https://docs.aws.amazon.com/marketplace/latest/userguide/java-integration-example-registerusage.html
docktermj commented
docktermj commented
A spike on using the Docker HEALTHCHECK
as a means of driving metering: