Home > Hands-On Labs > Lab 

🧪Hands-On Lab
Help/Info

IAM Generate Credentials Report Hands-On Lab with access to console, CLI, and CloudShell

Login or register a free account to launch this lab!

Create Free Account or Login

Comments

Responses

Your email address will not be published. Required fields are marked *

  1. Great Lab, though I get getting this error on the very last step cls
    $ aws iam get-credential-report –output text –query Content | base64 -d | awk -F,
    Usage: awk [POSIX or GNU style options] -f progfile [–] file …
    Usage: awk [POSIX or GNU style options] [–] ‘program’ file …
    POSIX options: GNU long options: (standard)
    -f progfile –file=progfile
    -F fs –field-separator=fs
    -v var=val –assign=var=val
    Short options: GNU long options: (extensions)
    -b –characters-as-bytes
    -c –traditional
    -C –copyright
    -d[file] –dump-variables[=file]
    -D[file] –debug[=file]
    -e ‘program-text’ –source=’program-text’
    -E file –exec=file
    -g –gen-pot
    -h –help
    -i includefile –include=includefile
    -l library –load=library
    -L[fatal|invalid|no-ext] –lint[=fatal|invalid|no-ext]
    -M –bignum
    -N –use-lc-numeric
    -n –non-decimal-data
    -o[file] –pretty-print[=file]
    -O –optimize
    -p[file] –profile[=file]
    -P –posix
    -r –re-interval
    -s –no-optimize
    -S –sandbox
    -t –lint-old
    -V –version

    To report bugs, see node `Bugs’ in `gawk.info’
    which is section `Reporting Problems and Bugs’ in the
    printed version. This same information may be found at
    https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
    PLEASE do NOT try to report bugs by posting in comp.lang.awk,
    or by using a web forum such as Stack Overflow.

    gawk is a pattern scanning and processing language.
    By default it reads standard input and writes standard output.

    Examples:
    awk ‘{ sum += $1 }; END { print sum }’ file
    awk -F: ‘{ print $1 }’ /etc/passwd

    An error occurred (InvalidClientTokenId) when calling the GetCredentialReport operation: The security token included in the request is invalid.

    1. Make sure you include the entire command since it’s multi-line (you need to include all the PRINT lines and brackets as part of your command). I’ll make that a bit more clear in the write-up as well!

What's a Hands-On Lab?

1-Click Deployments
AWS lab environments at the click of a button. Skip the hassle of creating or managing practice accounts and dive straight into using real resources.

Practical Learning
Learn cloud security with real AWS resources and real-world scenarios, not just theory.

Risk Free
No surprise bills when you forget to delete learning resources, and keep vulnerable training environments safely isolated from your corporate and production resources.