Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

223
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!