Skip to content

greg5678/lambda-shell-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda shell commands

Last updated: 2019-03-12T18:53:30.386Z, skip to the command list ↓

How Lambda works

AWS Lambda is a full Linux microcontainer that boots up on-demand in milliseconds, billing in 100ms increments.

Lambda is primarily used for running whatever business logic you feed one of its supported runtimes (or the custom runtime of your choosing, if you're into that!).

As in any application, it's not unusual to need to shell out for some kinds of operations – after all, UNIX is pretty powerful! 🏋🏽‍♀️

Fortunately, Lambdas – which run a lightweight AWS AMI – come equipped with a full complement of common Linux shell commands.

Helpful notes

  • AWS pre-installs the AWS SDK in all JS and Python Lambdas, so you don't need to include it in your application's dependencies!
    • In fact, doing so will only slow down your Lambda's startup times, so don't do that.
  • Important local paths
    • /var/task - Your default cwd (and where your code is located)
    • /tmp - A nice place to perform local operations
  • ⚠️ Security warning: If dealing with any potentially sensitive data on the Lambda filesystem, be sure to destroy those files before completing your application's execution.
    • Your Lambda microcontainers are kept warm and recycled across processes, so you really don't leave open the possibility of leaking data across executions – statelessness is a feature!

Build your own Lambda-based application

Partially self-serving plug: this here project is built with Architect, an open source serverless framework created and maintained by the company I cofounded: Begin, an open source-centric serverless app platform, created to help people like you build the fast, durable, scalable, affordable, maintainable, serverless software of the future.

Available AWS Lambda shell commands, shortcuts, and syntax

  • !
  • .
  • :
  • [
  • [[
  • ]]
  • a2p
  • addr2line
  • alias
  • animate
  • ar
  • arch
  • as
  • aserver
  • awk
  • base64
  • basename
  • bash
  • bashbug
  • bashbug-64
  • bdftopcf
  • bdftops
  • berkeley_db_svc
  • bg
  • bind
  • bmp2tiff
  • break
  • build-classpath
  • build-classpath-directory
  • build-jar-repository
  • builtin
  • bunzip2
  • bzcat
  • bzcmp
  • bzdiff
  • bzgrep
  • bzip2
  • bzip2recover
  • bzless
  • bzmore
  • c++filt
  • c2ph
  • ca-legacy
  • cairo-sphinx
  • cal
  • caller
  • captoinfo
  • case
  • cat
  • catchsegv
  • cd
  • certutil
  • chcon
  • check-binary-files
  • checksctp
  • chgrp
  • chmod
  • chown
  • chrt
  • chvt
  • cksum
  • clean-binary-files
  • clear
  • cmp
  • cmsutil
  • col
  • colcrt
  • colrm
  • column
  • comm
  • command
  • compare
  • compgen
  • complete
  • compopt
  • composite
  • conjure
  • continue
  • convert
  • coproc
  • cp
  • cpio
  • create-jar-links
  • crlutil
  • csplit
  • curl
  • cut
  • dash
  • date
  • db_archive
  • db_checkpoint
  • db_codegen
  • db_deadlock
  • db_dump
  • db_dump185
  • db_hotbackup
  • db_load
  • db_printlog
  • db_recover
  • db_stat
  • db_upgrade
  • db_verify
  • dd
  • deallocvt
  • declare
  • df
  • diff
  • diff-jars
  • diff3
  • dir
  • dircolors
  • dirname
  • dirs
  • disown
  • display
  • dmesg
  • dnsdomainname
  • do
  • domainname
  • done
  • du
  • dumphint
  • dumpkeys
  • dvipdf
  • dwp
  • echo
  • egrep
  • eject
  • elfedit
  • elif
  • else
  • enable
  • env
  • eps2eps
  • eqn
  • esac
  • eu-addr2line
  • eu-ar
  • eu-elfcmp
  • eu-elflint
  • eu-findtextrel
  • eu-make-debug-archive
  • eu-nm
  • eu-objdump
  • eu-ranlib
  • eu-readelf
  • eu-size
  • eu-stack
  • eu-strings
  • eu-strip
  • eu-unstrip
  • eval
  • exec
  • exit
  • expand
  • export
  • expr
  • factor
  • fallocate
  • false
  • fax2ps
  • fax2tiff
  • fc
  • fc-cache
  • fc-cat
  • fc-list
  • fc-match
  • fc-query
  • fc-scan
  • fg
  • fgconsole
  • fgrep
  • fi
  • file
  • find
  • find-jar
  • find2perl
  • findmnt
  • flock
  • fmt
  • fold
  • font2c
  • fonttosfnt
  • for
  • free
  • function
  • funzip
  • gawk
  • gcore
  • gdb
  • gdb-add-index
  • gdbus
  • gencat
  • gendiff
  • geqn
  • getconf
  • getent
  • getkeycodes
  • getopt
  • getopts
  • ghostscript
  • gif2tiff
  • gio-querymodules-64
  • glib-compile-schemas
  • gmake
  • gneqn
  • gnroff
  • gpg
  • gpg-agent
  • gpg-connect-agent
  • gpg-error
  • gpg-zip
  • gpg-zip2
  • gpg2
  • gpgconf
  • gpgparsemail
  • gpgsplit
  • gpgsplit2
  • gpgv
  • gpgv2
  • gpic
  • gprof
  • grep
  • groff
  • grops
  • grotty
  • groups
  • gs
  • gsbj
  • gsdj
  • gsdj500
  • gsettings
  • gslj
  • gslp
  • gsnd
  • gsoelim
  • gstack
  • gtar
  • gtbl
  • gtroff
  • gunzip
  • gzexe
  • gzip
  • h2ph
  • hash
  • head
  • help
  • hexdump
  • history
  • hostid
  • hostname
  • i386
  • iconv
  • id
  • identify
  • idn
  • idn2
  • if
  • igawk
  • import
  • in
  • info
  • infocmp
  • infokey
  • infotocap
  • install
  • ionice
  • ipcalc
  • ipcmk
  • ipcrm
  • ipcs
  • iptables-xml
  • isosize
  • java
  • java7
  • java8
  • jjs
  • jjs8
  • jobs
  • join
  • jvmjar
  • kbd_mode
  • kbdrate
  • keytool
  • keytool7
  • keytool8
  • kill
  • killall
  • kmod
  • last
  • lastb
  • lastlog
  • lchfn
  • lchsh
  • ld
  • ld.bfd
  • ld.gold
  • ldd
  • let
  • link
  • linux32
  • linux64
  • ln
  • loadkeys
  • loadunimap
  • local
  • locale
  • localedef
  • logger
  • login
  • logname
  • logout
  • look
  • lprsetup.sh
  • ls
  • lsblk
  • lscpu
  • lsipc
  • lslocks
  • lslogins
  • lsns
  • lua
  • luac
  • make
  • makedb
  • mapfile
  • mapscrn
  • mcookie
  • md5sum
  • mesg
  • mkdir
  • mkfifo
  • mkfontdir
  • mkfontscale
  • mknod
  • mktemp
  • modutil
  • mogrify
  • montage
  • more
  • mountpoint
  • mv
  • namei
  • neqn
  • netstat
  • nice
  • nisdomainname
  • nl
  • nm
  • node
  • nohup
  • npm
  • nproc
  • npx
  • nroff
  • nsenter
  • numfmt
  • objcopy
  • objdump
  • od
  • oldfind
  • open
  • openssl
  • openvt
  • orbd
  • orbd7
  • orbd8
  • p11-kit
  • pack200
  • pack2007
  • pack2008
  • pal2rgb
  • paste
  • patch
  • pathchk
  • pdf2dsc
  • pdf2ps
  • pdfopt
  • peekfd
  • perl
  • perl5.16.3
  • perlbug
  • perldoc
  • perlthanks
  • pf2afm
  • pfbtopfa
  • pgawk
  • pgrep
  • pic
  • piconv
  • pinentry
  • pinentry-curses
  • ping
  • ping6
  • pinky
  • pk12util
  • pkg-config
  • pkill
  • pl2pm
  • pldd
  • pmap
  • pod2html
  • pod2man
  • pod2text
  • pod2usage
  • policytool
  • policytool7
  • policytool8
  • popd
  • post-grohtml
  • ppm2tiff
  • pr
  • pre-grohtml
  • preconv
  • printafm
  • printenv
  • printf
  • prlimit
  • prtstat
  • ps
  • ps2ascii
  • ps2epsi
  • ps2pdf
  • ps2pdf12
  • ps2pdf13
  • ps2pdf14
  • ps2pdfwr
  • ps2ps
  • ps2ps2
  • psed
  • psfaddtable
  • psfgettable
  • psfstriptable
  • psfxtable
  • pstack
  • pstree
  • pstree.x11
  • pstruct
  • ptx
  • pushd
  • pv.sh
  • pwd
  • pwdx
  • pwmake
  • pwscore
  • pydoc
  • pydoc2.7
  • pydoc27
  • pydoc3
  • pydoc3.4
  • python
  • python2.7
  • python27
  • python3
  • python3.4
  • python3.4m
  • python34
  • pyvenv3
  • pyvenv3.4
  • ranlib
  • ras2tiff
  • raw
  • raw2tiff
  • read
  • readarray
  • readelf
  • readlink
  • readonly
  • realpath
  • rebuild-jar-repository
  • rebuild-security-providers
  • rename
  • renice
  • reset
  • resizecons
  • return
  • rev
  • rgb2ycbcr
  • rm
  • rmdir
  • rmid
  • rmid7
  • rmid8
  • rmiregistry
  • rmiregistry7
  • rmiregistry8
  • rpcgen
  • rpm
  • rpm2cpio
  • rpmbuild
  • rpmdb
  • rpmkeys
  • rpmquery
  • rpmspec
  • rpmverify
  • runcon
  • s2p
  • script
  • scriptreplay
  • sctp_darn
  • sctp_status
  • sctp_test
  • sdiff
  • sed
  • select
  • seq
  • servertool
  • servertool7
  • servertool8
  • set
  • setarch
  • setfont
  • setkeycodes
  • setleds
  • setmetamode
  • setpriv
  • setsid
  • setterm
  • setup-nsssysinit
  • setup-nsssysinit.sh
  • sh
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • shift
  • shopt
  • showconsolefont
  • showkey
  • shred
  • shuf
  • signtool
  • signver
  • size
  • skill
  • slabtop
  • sleep
  • snice
  • soelim
  • sort
  • sotruss
  • source
  • splain
  • split
  • sprof
  • sqlite3
  • ssltap
  • stat
  • stdbuf
  • stream
  • strings
  • strip
  • stty
  • sum
  • suspend
  • sync
  • tabs
  • tac
  • tail
  • tailf
  • tar
  • taskset
  • tbl
  • tee
  • test
  • then
  • thumbnail
  • tic
  • tiff2bw
  • tiff2pdf
  • tiff2ps
  • tiff2rgba
  • tiffcmp
  • tiffcp
  • tiffcrop
  • tiffdither
  • tiffdump
  • tiffinfo
  • tiffmedian
  • tiffset
  • tiffsplit
  • time
  • timeout
  • times
  • tload
  • tnameserv
  • tnameserv7
  • tnameserv8
  • toe
  • top
  • touch
  • tput
  • tr
  • tracepath
  • tracepath6
  • trap
  • troff
  • true
  • truncate
  • tset
  • tsort
  • ttmkfdir
  • tty
  • type
  • typeset
  • tzselect
  • ucs2any
  • ul
  • ulimit
  • umask
  • unalias
  • uname
  • unexpand
  • unicode_start
  • unicode_stop
  • uniq
  • unix-lpr.sh
  • unlink
  • unpack200
  • unpack2007
  • unpack2008
  • unset
  • unshare
  • until
  • unxz
  • unzip
  • unzipsfx
  • update-ca-trust
  • update-mime-database
  • uptime
  • urlgrabber
  • urlgrabber-2.7
  • users
  • usleep
  • utmpdump
  • uuidgen
  • vdir
  • vmstat
  • w
  • wait
  • watch
  • watchgnupg
  • wc
  • wdctl
  • wftopfa
  • whereis
  • which
  • while
  • who
  • whoami
  • withsctp
  • x86_64
  • xargs
  • xmlcatalog
  • xmllint
  • xmlwf
  • xsltproc
  • xz
  • xzcat
  • xzcmp
  • xzdec
  • xzdiff
  • xzegrep
  • xzfgrep
  • xzgrep
  • xzless
  • xzmore
  • yes
  • ypdomainname
  • yum
  • zcat
  • zcmp
  • zdiff
  • zegrep
  • zfgrep
  • zforce
  • zgrep
  • zipgrep
  • zipinfo
  • zless
  • zmore
  • znew
  • zsoelim
  • {
  • }

Credits

This project inspired by What's on Lambda!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published