sebasrp / awslimitchecker

Simple module to programatically retrieve your AWS account limits (whether they are supported by servicequotas or not). It also provide a lightweight cli program to access the data.
MIT License
2 stars 0 forks source link

Add missing quotas for dynamodb #3

Open sebasrp opened 1 year ago

sebasrp commented 1 year ago

DynamoDb quota coverage is not completed - see table below for quotas that exist that are supported in service quotas

For detailed on these quotas, check the official documentation

Changes will be on https://github.com/sebasrp/awslimitchecker/blob/main/internal/services/dynamodb.go

CodeWAdi commented 1 year ago

can you explain in bit detail what do I have to do

sebasrp commented 1 year ago

All changes should only be needed to be done in https://github.com/sebasrp/awslimitchecker/blob/main/internal/services/dynamodb.go and the respective https://github.com/sebasrp/awslimitchecker/blob/main/internal/services/dynamodb_test.go file.

Pick one quota you want to implement, then:

  1. Add it to https://github.com/sebasrp/awslimitchecker/blob/main/internal/services/dynamodb.go#L16
  2. Implement the function that you will use to measure usage
  3. Add respective test

For eg, for quota Account-level read throughput limit (Provisioned mode) you would need to iterate through the list of tables and sum the provisioned iops