Giter Club home page Giter Club logo

aws_shortcuts's Introduction

aws_shortcuts

Shorthand configurable personalized commands to work faster on AWS locally

e.g. -

List all EC2 instances

ali <any pattern>

instance01	i-91d62f6f	10.10.110.245	56.13.52.19	t2.small	running
instance02	i-3b2e0ceb	10.10.110.62	56.12.36.95	t2.small	running
instance03	i-ce62201c	10.10.110.54	56.21.41.14	t2.medium	running

For any specific pattern

ali 10.10.110.245

instance01	i-91d62f6f	10.10.110.245	56.13.52.19	t2.small	running

List all S3 buckets

alb <any pattern>

alb test1

test1.test.bodies
test1.test.client-logs
test1.test.files

List all Lambdas

all <any pattern>

all example

staging.example1
staging.example2
staging.example3

List all SSM Parameters

alp <any pattern>

alp prod.db

prod.db1.password
prod.db2.password
prod.db3.password

Get value of a particular ssm parameter

agp <parameter>

agp prod.db1.password

xYvd$%sgh#

List all Route53 hosted DNS with their all records type

alz <any pattern>

alz example.com

example.com.	Private	v1.example.com.	A	10.10.74.4	10.10.74.5
example.com.	Private	v2.example.com.	A	10.10.75.4	10.10.75.5

List all load balancers with their port(s), instance(s), target group(s) mapping

allb <any pattern>

allb 

classic     testclb     internet-facing     ['80-->80', '443-->80']     ['i-a51baa4a', 'i-e4142b1f']
network     testnlb     internet-facing     ['80-->test-tg']    {'test-tg': [i-d21resde-->80, i-d345werds-->80]}

List all cloudfront distributions with aliases and configured behaviours

alcf <any pattern>

alcf

a3f4d2uflw1se3.cloudfront.net   my.example.com  *-->my.example.com.s3-website-us-east-1.amazonaws.com
ad34d2rclw1w4e.cloudfront.net   web.example.com  *-->web.example.com.s3-website-us-east-1.amazonaws.com

Get the traceroute path of a domain inside AWS

agd <domain>

agd my.example.com

Domain pointing to --> a3f4d2uflw1se3.cloudfront.net

Searching in cloudfront for a3f4d2uflw1se3.cloudfront.net
cloudfront details:
a3f4d2uflw1se3.cloudfront.net   my.example.com  *-->my.example.com.s3-website-us-east-1.amazonaws.com

List all configured commands at any time

awss 

Rename any command(s) at any time

awss configure

Fetch latest data quickly from AWS

awss update

Update Project codebase to latest version for new features

awss upgrade

All list commands support pattern(s), specify the pattern for specific result else all dataset will be returned

Steps to set the project -

  1. Install aws cli https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

  2. Configure aws secret key and access key as same credentials will be used to query AWS resources

    aws configure
    
  3. Run the following command to set project with default commands

    curl -s https://raw.githubusercontent.com/sunil-saini/aws_shortcuts/master/awss.sh -o awss.sh && . ./awss.sh && rm awss.sh
    

Connect to me for any feedback

email - [email protected]
linkedin - www.linkedin.com/in/sunilsaini314

Happy Coding, Enjoy.

aws_shortcuts's People

Contributors

sunil-saini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

talk-to

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.