burib / aws-region-table-parser

converts aws Region Table html page into a json object ( runs every day at 12:00 UTC noon )
MIT License
19 stars 9 forks source link

make it copatible with aws service codes and servce names #22

Closed amanenk closed 2 years ago

amanenk commented 2 years ago

I have a use case where I need to check if my error is related to a networking or service is just not available in requested region. I have a domain name that is requested but in case of cognito requests domain name is one of cognito-identity, cognito-idp or cognito-sync. It would awesome to match cognito service from parseddata.json with service codes above. There is a command to list all the service names and service codes aws service-quotas list-services The part of response looks next:

        {
            "ServiceCode": "cognito-identity",
            "ServiceName": "Amazon Cognito Federated Identities"
        },
        {
            "ServiceCode": "cognito-idp",
            "ServiceName": "Amazon Cognito User Pools"
        },
        {
            "ServiceCode": "cognito-sync",
            "ServiceName": "Amazon Cognito Sync"
        },
burib commented 2 years ago

@amanenk thanks for the feedback and the idea, it's really valuable. I can take a look at the implementation next week.

burib commented 2 years ago

@amanenk I think I've fixed what you meant.

Now I'm using the service code as an index, instead of parsing the url. ( for example: https://github.com/burib/aws-region-table-parser/blob/master/data/parseddata.json#L3167 )

This way you can query the aws service-quotas list-services by the service code.

does it fixes your problem ?

burib commented 2 years ago

also, sorry for the late response.

amanenk commented 2 years ago

Yeah. It does help. Thank you so much.