
Learn how to install and configure the AWS CLI on Windows and macOS/Linux, and use it with Elastic Beanstalk and SAM to automate infrastructure and DevOps tasks.
Master the AWS CLI basics for EC2, S3, DynamoDB, Lambda, Glacier and more, orchestrate environments with Elastic Beanstalk and SAM, and practice hands-on labs with CI/CD and cost awareness.
Secure AWS credentials by avoiding plaintext keys, never embedding them in code, and using temporary credentials, roles, MFA, and regular key rotation.
Create and manage an IAM user for AWS CLI and console access, assign admin and Lambda permissions, enable programmatic access with access keys, and configure CloudTrail monitoring.
Create an IAM user for AWS CLI using naming conventions, assign admin access, generate access keys and a password, tag ownership to Dan, and securely save the CSV with keys.
Install the AWS CLI on Apple using Homebrew, navigate dependencies like Xcode, and troubleshoot shallow clone errors to prepare for Elastic Beanstalk and SAM CLI installations.
Explore installing Homebrew and macOS command line tools, troubleshoot common errors, understand shallow clones versus full repository, and resolve issues with brew update, brew upgrade, and Docker on Monterey.
Install the AWS command line interface using brew, resolve any upgrade or link errors, verify the installation, then proceed to create the user account in the AWS console.
Create a Windows IAM user with programmatic access for the AWS CLI, assign admin and CLI permissions, download and safeguard the access key and secret key, and review security credentials.
Install the AWS CLI on 64-bit Windows using the MSI installer or command line, with admin rights and a standard setup, then verify in PowerShell.
Install the AWS CLI on Windows from the download page, run the installer via PowerShell, choose user or administrator installation, then verify with aws --version and proceed to AWS config.
Configure the AWS CLI on Windows PowerShell by entering your access key, secret key, the region us-east-1, and JSON output, then verify with aws ec2 describe-instances.
Set up AWS Cloud Trail to monitor accounts, create an audit trail with encrypted S3 logs, and track management, data, and insights events with optional CloudWatch alerts.
Set up AWS CloudTrail to log all account activity and track who did what. Configure a trail with data and management events and route logs to S3 bucket and CloudWatch.
Learn to monitor AWS CLI activity with CloudTrail by creating a trail, logging who did what and when, and reviewing access key usage across logs for audit.
Learn how CloudTrail provides audit logs to track who did what, when, and from where, enabling quick alerts and security checks across AWS accounts.
Learn to connect to AWS EC2 instances via SSH from Linux or Apple, manage keys and permissions, and explore options like EC2 Instance Connect and Session Manager.
Understand identity and access management in AWS, including root accounts, policies, roles, and groups. Apply least privilege with granular permissions, MFA, federation, and tools like CloudTrail and access analyzer.
Explore essential IAM command topics in the AWS CLI, including creating, deleting, getting, listing, and updating users, groups, roles, policies, login profiles, and MFA devices.
Explore the update to the IAM user interface, noting that creating users and programmatic access with keys remains the same, and discuss permissions boundary and attaching policies.
Use the AWS CLI on an Apple Linux interface to create an IAM user with no permissions, attach groups and policies, verify access from returned credentials, and delete the user.
Learn how to create and delete AWS IAM users via the command line and PowerShell, assign usernames, add to groups, set login profiles and access keys, then remove the user.
Learn to create and delete an aws cli access key for a devops user using an apple and linux style terminal, rotate credentials, and monitor quota with CloudTrail.
Learn to create and delete an AWS access key for a user, manage active keys, rotate by deactivating and deleting old keys, and optionally output results to a text file.
Create and delete a group named admins using Apple and Linux command lines, organizing users into boxes like administrators or help desk, and verify the group with a refresh.
Create and delete an IAM group on Windows using PowerShell, verify creation in IAM, and handle deletion when users are present, with insights on attaching policies and organizing users.
Learn to add a user to the admins group and remove a user from a group using the AWS CLI, verify membership, and handle non-existent user or group errors.
Learn how to add a user to a group and remove a user from a group using aws iam commands on Windows, handle common errors, and manage group deletion.
Learn to create and delete AWS IAM login profiles for a user like Dan Test in an Apple Linux style, enforce password reset, and manage console access.
Learn to create and delete AWS IAM login profiles, set or reset console passwords, and manage user access—ensuring a user exists and handling bulk password updates.
Learn to create and delete IAM policies with AWS CLI, using templates like CloudTrail or Lambda policy, saving JSON locally and validating in the IAM console.
Create a Windows AWS IAM policy in PowerShell by copying a policy into Notepad, saving it as Dan Lambda Windows, and applying the policy document from your directory.
Attach a policy directly to a user to grant cloud watch admin rights, using either a pre made policy or an internal AWS managed policy, and detach when needed.
Attach an in-built policy to a user using the AWS CLI, navigating account ID requirements for managed versus non-managed policies, and detach policies when needed.
Navigate the EC2 command line to manage VPCs, subnets, key pairs, security groups, and instances. Use AMIs, regions, EBS, and launch templates to automate deployments and organize resources.
Explore AWS EC2 and its command line management, including instances, EBS volumes, VPCs, AMIs, key pairs, security groups, and cross-OS options to deploy scalable cloud workloads.
Learn to manage ec2 instances with the aws cli by starting and stopping instances using instance IDs, verifying stopped state, and applying commands for stop, start, reboot, hibernate, or terminate.
Create a default VPC to maintain essential AWS connectivity after cleanup, and reconstitute the default VPC when missing to troubleshoot resource launches.
Create and delete a virtual private cloud VPC in AWS using the EC2 dashboard, configure a CIDR block such as 172.30.0.0/16, and manage the VPC ID.
Learn how to quickly create and delete AWS key pairs from the command line, generate RSA private key material, save as a PEM file, and apply permissions and security parameters.
Create and delete an AWS CLI security group named test group, view its group ID and VPC association. Outbound traffic is open by default; inbound rules are not configured.
Use the aws cli to create traffic mirroring, including a traffic mirror filter and rules, mirror source and target, and manage sessions to split traffic for kinesis or IoT streams.
Describe images with the AWS CLI, list AMI IDs, public or private status, platform details, mappings, and attachments, then export to text for beanstalk or cloud formation templates.
Describe all your running instances per region with the aws cli, view image id, ami, size, key name, launch time, and public or private addresses.
Describe key pairs with the aws cli, pull their details into a text file via the command line, and maintain consistent naming for effective rotation across regions.
Describe local gateway route tables with the AWS CLI to troubleshoot routing issues. Output the results to screen or save them to a text file for quick diagnostics.
Elastic Beanstalk deploys apps quickly without deep infrastructure knowledge. It provisions resources, handles load balancing and scaling, supports environments and versions, and enables weighted rollouts via the command line interface.
Use the elastic beanstalk command line to manage environments, navigate regional limitations, and integrate with codebuild via a build spec file. Master quick status commands for fast cli insights.
Install the AWS Elastic Beanstalk tools to extend the AWS command line interface for automation and cloud formation tasks, enabling Beanstalk-specific commands and expanded workflows.
Learn to create and configure an Elastic Beanstalk environment using the AWS CLI, selecting a Linux Node.js sample app, a single instance, and basic health and log options.
Verify eb tools with eb app version, set a default domain, select the built app, and check environment status and deployed version using eb.
Edit the local beanstalk html template with eb config in a text editor, adjusting environmental details like publication name or version, then quit to avoid changes.
Open the Elastic Beanstalk console in moments using the eb console command from the aws cli. This quick shortcut launches your Elastic Beanstalk environment directly from the command line.
Learn how to create a source bundle with git archive, deploy as an Elastic Beanstalk app version, and balance no context clues with portability and GitHub for multi-data center deployments.
Learn to use eb events to tail real-time environment logs, monitor new events on a poll cycle, and export updates to a text file for quick troubleshooting.
Learn to use eb health to monitor Elastic Beanstalk deployments with a quick, scriptable dashboard showing deployment duration, environment, loads, idling, and warnings or degraded info.
Master the eb logs command to enable or disable log streaming, retrieve incident or cloud watch logs, and access standard out and error logs for quick troubleshooting.
Terminate the last or default Elastic Beanstalk environment using eb terminate, confirming the environment name and watching the live feedback as EC2 instances shut down.
Verify Elastic Beanstalk environment termination by checking console status and EC2 instance states to ensure the environment is fully shut down, avoiding ongoing costs.
Define serverless applications with AWS SAM, an extension of CloudFormation that supports programmatic resources, local testing with SAM CLI and Docker, and streamlined deployments with tracing and rollbacks.
Install the SAM CLI with Homebrew, verify installation with sam version, and resolve dependencies and errors (python, openssl, ruby, certificates) to ensure the AWS CLI tooling works smoothly.
Install the SAM CLI on Windows with a straightforward 64-bit installer, then verify the setup by running sam version in PowerShell.
Initialize a SAM project using the quick start hello world template, enable x-ray and monitoring, and explore serverless templates, testing, and CloudFormation resources with Python 3.9.
SAM build resolves dependencies, sets runtime metadata, and copies source to create artifacts for versioning; then SAM validate checks the template and enables cloud tests with a stack name.
Learn to initialize a SAM project using a quickstart hello world template, build and deploy with the SAM CLI, and access the deployed hello world via a rest api endpoint.
Learn to delete a SAM stack in the AWS CLI by using sam delete with your stack name, confirming prompts, and watching CloudFormation clean up resources.
Learn how to use sam deploy from your project directory to deploy a change set with a stack name, verify with curl, and quickly delete or redeploy.
Learn how to view and tail sam logs for a running lambda stack by using sam logs with your stack name, enabling real-time troubleshooting and output customization.
Learn how Sam traces use a trace ID and x ray events to trace a process, capture HTTP codes, and troubleshoot your stack.
Explore sam validate to lint, debug, and validate your serverless application model templates, check exit codes and telemetry, and perform quick qa of your sam workflows.
Learn how to fetch EC2 launch template data with the AWS CLI, generate JSON templates for cloud formation, and inspect instance details like block device mappings and IP schemas.
Master cloud formation templates to model and provision infrastructure as code with stacks and stack sets across regions; learn change sets, drift detection, and deploying templates from the AWS CLI.
Explore sam templates for serverless applications, access sample templates and their source code, and verify the transform header before resources, linking to Lambda in the serverless environment.
Delete the AWS user and clean up after tests to prevent lingering access. Generate new passwords, assign MFA, and generate a policy to manage group credentials.
Learn how to clean up CloudTrail logs by stopping logging, deleting the trail, and permanently emptying the associated S3 bucket to avoid ongoing charges.
Wrap up practical AWS CLI workflows across macOS, Linux, and Windows with scripting, templates, and IAM tasks, and explore cost awareness while cleaning up users for security.
Welcome to the AWS Command Line Course, The AWS CLI has a mythos of being very hard to use, but if you have ever done any scripting at all, the CLI is a quick way to automate many of the administrative tasks that both developers and administrators have to do on a day-to-day basis. This course covers the AWS CLI 2.X command reference.
While the AWS console is great to use and often recommended for people to learn, you can only do one thing at a time, make a user, make an ec2, make a beanstalk, or a cloud formation project one at a time on the console. While beanstalk and cloud formation allow you to orchestrate whole environments, using the CLI can often be a quicker way of deploying an ecosystem over using the one item at a time console.
This course will walk you through how to install the AWS CLI and common uses that will truly make your deployment, orchestration, or system administration much easier and much quicker. If you already script a lot of your automation or script a lot of your day-to-day administration services then after learning the syntax, you’ll be able to do the same with your AWS environment.
Benefits to the AWS CLI (Command Line Interface)
The biggest benefit to using the AWS CLI is the ability to automate multiple AWS services from one scripting location.
For people who are old-school scripting and automating servers and their processes like updates and other items are common, administrators do this on a daily basis, especially for repetitive or frankly boring things to do. Adding the cloud to the mix just adds complexity and in many cases hundreds if not thousands of more servers, databases, and other items that can benefit from a common scripting base.
• Saving time on routine administration is a huge benefit of using the CLI
• You can control most if not all Amazon services from the CLI
• You can use it to automate processes, even ones that are time-dependent using a variation of cron to schedule backups