0
0
PowerShellscripting~5 mins

AWS PowerShell module - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the AWS PowerShell module used for?
It is used to manage AWS services and resources directly from PowerShell commands, allowing automation and scripting of AWS tasks.
Click to reveal answer
beginner
How do you install the AWS PowerShell module?
Run the command Install-Module -Name AWSPowerShell.NetCore in PowerShell to install the module from the PowerShell Gallery.
Click to reveal answer
intermediate
What command is used to set AWS credentials in PowerShell?
Use Set-AWSCredential -AccessKey YOUR_ACCESS_KEY -SecretKey YOUR_SECRET_KEY -StoreAs PROFILE_NAME to save credentials securely for later use.
Click to reveal answer
beginner
How can you list all S3 buckets using AWS PowerShell module?
Use the command Get-S3Bucket to retrieve a list of all your S3 buckets in your AWS account.
Click to reveal answer
intermediate
What is the purpose of the Initialize-AWSDefaultConfiguration cmdlet?
It sets the default AWS region and profile for your PowerShell session, so you don't have to specify them in every command.
Click to reveal answer
Which command installs the AWS PowerShell module?
ANew-AWSModule
BInstall-Module -Name AWSPowerShell.NetCore
CGet-AWSPowerShell
DImport-Module AWS
How do you securely save AWS credentials for reuse in PowerShell?
AAdd-AWSCredential
BSave-AWSCredentials
CSet-AWSCredential -AccessKey ... -SecretKey ... -StoreAs PROFILE_NAME
DNew-AWSProfile
Which cmdlet lists all S3 buckets in your AWS account?
AGet-S3Bucket
BList-S3Buckets
CShow-S3Buckets
DGet-AWSS3
What does Initialize-AWSDefaultConfiguration do?
ASets default AWS region and profile for the session
BCreates a new AWS user
CDeletes AWS credentials
DStarts an AWS EC2 instance
Which of these is NOT a valid way to authenticate AWS PowerShell commands?
AUsing stored credentials with Set-AWSCredential
BUsing environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
CUsing IAM roles when running on EC2
DUsing Windows user account password
Explain how to install and configure the AWS PowerShell module for managing AWS resources.
Think about the steps from installation to ready-to-use setup.
You got /3 concepts.
    Describe how you would list all your S3 buckets using PowerShell and what prerequisites are needed.
    Consider what must be done before running the command.
    You got /3 concepts.