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

234
Visualizações
Is it possible to use Regex expressions in the nodeJS aws sdk?

I can run this AWS cli command and get the correct images created in the past 45 days.

 aws ec2 describe-images --region us-east-1 --owners self  -- query'Images[CreationDate<`2021-12-18`] | sort_by(@, &CreationDate)[].Name'

But following this documentation:https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#describeImages-property Is there a way to input a regex in order to get the Images that were created in the last X days? I can't find a way to query like this in NodeJs's aws sdk.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The --query parameter in the AWS CLI tool is a client-side filtering method. The full results will be returned from AWS, and then the --query parameters are applied to the JSON response that was returned.

The equivalent of this in NodeJS would be to call the AWS SDK and get all the results back, and then iterate over the results and apply your regex, or use some sort of JSON filtering library on the results after you have obtained them.

about 4 years ago · Juan Pablo Isaza Relatório
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