Giter VIP home page Giter VIP logo

aws-jq-cli's Introduction

aws-jq-cli

A simple addition to amazon/aws-cli with jq installed to process json output from the cli.

Scripts

There is a /scripts folder where some helpful scripts reside

getNewesVersionForDate

get the version Id of a specific date from s3. It will use the aws s3api list-object-versions command and process the result down to the newest version id of the files found for that date. If no files have been found it will exit with non zero exit code. Usage

/scripts/getNewestVersionIdForDate.sh my-bucket my-file my-date additional-arguments

The date is a simple string comparison on the LastModified String that accepts partial matches. E.g. 2018-08-03 will return the newest file from August 3rd 2018. If you just pass 2020-08 it will look up the newest file of August.

anythin after the date will be passed through to the aws s3api list-object-versions command. So if you e.g. wanna use another endpoint and skip ssl-verification just do this like

/scripts/getNewestVersionIdForDate.sh my-bucket my-file 2020 --endpoint-url my-endpoint --no-verify-ssl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.