You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I SSH to a node in my cluster, and list the quotas for elasticloadbalancing, I can clearly see that the quota with code 'L-E9E9831D' has a 'Value' of 20:
However, when my service in the same cluster performs the same query via the AWS SDK for Go, I find that for this quota and a few others, the pointer to the 'Value' field is nil:
It's reliably a null reference for those specific three quotas in every region. This is a 100 repro across all the clusters I've spun up for testing- I never see the other quotas with null values, nor do I ever see any of these without a null value.
I'm relatively new to Golang, so it's possible I'm doing something wrong, but the fact that I'm able to effectively print the other quotas says to me that the value of that field in the struct returned by the API really is empty. Does anyone know why I might be experiencing this, or has anyone else had similar issues? Failing that, anybody have thoughts on how how to work around it if I need one of these quotas?
The only thing I noticed that might be helpful, is that all of the quotas that are showing up null have default quota values when I fetch them manually using the AWS CLI. This can't be the whole story though, because some of the quotas that DO show up in the API Service call also have default values.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm encountering a weird difference in behavior between the AWS CLI, and the AWS SDK for Go when retrieving quotas for a service.
The command I'm running in the AWS CLI:
aws service-quotas list-service-quotas --service-code elasticloadbalancing --region us-west-2
The function call in Golang:
ServiceQuotaClient.ListServiceQuotasPagesWithContext
The problem:
When I SSH to a node in my cluster, and list the quotas for elasticloadbalancing, I can clearly see that the quota with code 'L-E9E9831D' has a 'Value' of 20:
However, when my service in the same cluster performs the same query via the AWS SDK for Go, I find that for this quota and a few others, the pointer to the 'Value' field is nil:
It's reliably a null reference for those specific three quotas in every region. This is a 100 repro across all the clusters I've spun up for testing- I never see the other quotas with null values, nor do I ever see any of these without a null value.
I'm relatively new to Golang, so it's possible I'm doing something wrong, but the fact that I'm able to effectively print the other quotas says to me that the value of that field in the struct returned by the API really is empty. Does anyone know why I might be experiencing this, or has anyone else had similar issues? Failing that, anybody have thoughts on how how to work around it if I need one of these quotas?
The only thing I noticed that might be helpful, is that all of the quotas that are showing up null have default quota values when I fetch them manually using the AWS CLI. This can't be the whole story though, because some of the quotas that DO show up in the API Service call also have default values.
Beta Was this translation helpful? Give feedback.
All reactions