1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
1
You have the option to either have API Gateway generate API keys for you or you have the option to import API keys. If you use the import option, you can ensure that the same API Keys are used for a particular client for both your regional API Gateway end-points.
Look at the "Import API Keys" section in https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-setup-api-key-with-console.html#api-gateway-usage-pan-import-apikey
As a side note, you should not use API Keys for Authentication and Authorization. API Keys are only meant for implementing Usage Plans for clients.
You can use mechanisms such as Cognito User Pools, Cognito Identity Pools, Lambda Authorizers etc. for Authentication and Authorization in API Gateway
Contenido relevante
- OFICIAL DE AWSActualizada hace 8 meses
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
@Indranil - thanks. point noted regarding api keys and authentication/authorization. could you also please take a look at my another question here, I am having an issue on how to do this via cloudformation. i have created a hosted zone for my domain name and want to use that and map it to my api gateway cloudformation in two regions, but i'm not how to connect -> https://repost.aws/questions/QU0SLKNMhsQdKYp3dTjsD_1g/how-to-configure-a-custom-domain-name-for-api-gateway-in-a-multi-region-scenario.