Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

270
Visualizações
Accessing AWS Elasticsearch in VPC from API Gateway HTTP Proxy

I would like to know how to access an AWS ES instance created in a VPC and secured with IAM policies from an AWS API Gateway setup as a HTTP Proxy.

I am able to access a public AWS ES instance via the API Gateway. I tried the following first to test using signed (v4 Signing) of the API requests to the ES instance

  1. I created an AWS ElasticSearch public instance (https://search-*******-******.us-west-2.es.amazonaws.com)
  2. Setup IAM policies on ES to restrict access only to a particular user
  3. Created an AWS API Gateway HTTP Proxy ({proxy+}) to forward all requests to the ES instance.
    • Used the public url of the ES instance from step 1 as the EndPoint URL for the API Gateway
    • (had to play around with headers to get the Authorization to be passed through to ElasticSearch successfully)
  4. Created Signed HTTP requests (tested via javascript), sent to the public API Gateway and was able to successfully read data from ES

Now I would like to put the ES instance in a VPC so that it is accessible only via the API Gateway HTTP proxy. Is this possible? I am able to access the private vpc url of the ES instance from another EC2 machine in the same subnet but how do we do this for an API Gateway? I am new to AWS. I have been trying to look at documentation and I seem to be going around in circles, maybe there is something simple that I am missing. Any help is greatly appreciated.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda