AWS Tools for PowerShell 6

Leverage the power of PowerShell to bring the best out of your AWS infrastructure

AWS Tools for PowerShell 6

Ramesh Waghmare

Leverage the power of PowerShell to bring the best out of your AWS infrastructure
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781785884078
Paperback372 pages

Book Description

AWS Tools for PowerShell 6 shows you exactly how to automate all the aspects of AWS. You can take advantage of the amazing power of the cloud, yet add powerful scripts and mechanisms to perform common tasks faster than ever before.

This book expands on the Amazon documentation with real-world, useful examples and production-ready scripts to automate all the aspects of your new cloud platform. It will cover topics such as managing Windows with PowerShell, setting up security services, administering database services, and deploying and managing networking. You will also explore advanced topics such as PowerShell authoring techniques, and configuring and managing storage and content delivery.

By the end of this book, you will be able to use Amazon Web Services to automate and manage Windows servers. You will also have gained a good understanding of automating the AWS infrastructure using simple coding.

Table of Contents

Chapter 1: PowerShell Essentials
Why PowerShell?
Running PowerShell
Reading the PowerShell language
Getting and exploring help options
Discovering cmdlets and aliases
Learning cmdlets
Risk mitigation parameters
Working with output
Running PowerShell remotely
Building parameterized script
Comment-based help
Summary
Chapter 2: The AWS Overview
Disruptive innovations - AWS Cloud
The benefits of AWS cloud computing
Common challenges of shifting to the cloud
The AWS global infrastructure
Security and compliance
AWS services
Laying out foundations
The AWS sign up
Get supported
Summary
Chapter 3: Installing PowerShell Core and AWS Tools
AWS Tools for PowerShell
Installing PowerShell 6 On Windows
Installing PowerShell 6 on Linux
Prerequisites for AWS Tools
Downloading and installing AWS Tools
Enabling script execution
Finding the AWS Tool version
Updating AWS Tools for PowerShell
Summary
Chapter 4: AWS Identity and Access Management
The AWS-shared responsibility model
Setting up AWS Tools for access
Managing AWS credentials
The AWS credential search order
Creating IAM users
Creating IAM groups
Accessing the AWS console
Accessing AWS via CLI
Removing a policy from the group
Revoking a policy from the user
What are IAM roles?
IAM policies
Dropping groups, roles, and users
Dropping PowerShell AWS profiles
The use case - access key rotation
Summary
Chapter 5: AWS Virtual Private Cloud
Laying the foundation
Virtual Private Cloud
Internet Gateways
Route Tables
Subnets
NAT Gateway
Network Access List
Security Groups
Summary
Chapter 6: AWS Elastic Compute Cloud
The characteristics of AWS EC2
The EC2 instance purchasing options
Understanding IP addresses on EC2
Storage options on EC2
Spinning up an EC2 instance
Accessing the EC2 instance
The EC2 instance metadata service
Stopping the EC2 instance
Starting the EC2 instance
The Elastic IP address
Terminating the EC2 instance
Placement Groups
Assigning an IAM role to the EC2 instance
The types of EBS
Amazon Machine Images
EBS snapshots
Summary
Chapter 7: AWS Simple Storage Service
AWS Glacier
Storage classes on S3
The S3 bucket
Folders and objects
Downloading folders and objects from the S3 bucket
Managing S3 permissions
Building S3 VPC endpoints
S3 Transfer Acceleration
S3 versioning
S3 lifecycle policies
Cross-region replication
Removing the S3 bucket
Summary
Chapter 8: Elastic Load Balancer
Why load balancer?
Types of Elastic Load Balancers
Application Load Balancer components
Creating Classic Load Balancer
Creating Application Load Balancer
Deleting Elastic Load Balancer
Summary
Chapter 9: Auto Scaling
Auto Scaling components
Auto Scaling lifecycle
Fleet management
Dynamic scaling
Creating launch configuration
Creating an Auto Scaling Group
Increasing a fleet manually
Scaling-Out and Scaling-In dynamically
Scaling on schedule
Lifecycle hooks and cooldown
Termination policies
Termination protection
Suspending the Auto Scaling process
Standby mode
Deleting an Auto Scaling Group
Summary
Chapter 10: Laying Foundation for RDS Databases
Database engines on RDS
Deployment consideration
DB instance classes
Multi-AZ and standby
Read replicas
Compliance
Data encryption
Database access and IAM
DB Security Groups
DB Subnet Groups
DB Parameter Groups
DB Option Groups
Summary
Chapter 11: DB Instance Administration and Management
RDS storage type
Licensing models on RDS
Understanding maintenance windows
Spinning up RDS DB instances
Multi-AZ deployment
Enabling encryption on RDS
Connecting to an RDS instance with and without SSL
Stop, start, and restart of a DB instance
Adding space to a DB instance
RDS backup
RDS restore
Manual snapshot of the RDS instance
Deleting an RDS instance
Checking account limit and attributes
Summary
Chapter 12: Working with RDS Read Replicas
Creating read replicas
Rebooting read replicas
Connecting to a read replica
Promoting read replicas to primary
Deleting read replicas
Use case - balancing traffic between read replicas
Summary
Chapter 13: AWS Elastic Beanstalk
What is Elastic Beanstalk?
Elastic Beanstalk components
Environment types
Understanding deployment models on Elastic Beanstalk
Creating application
Creating a configuration template
Deploying a popular WordPress application
Cloning an environment
Swapping an environment CNAME
Deleting an environment and application
Summary
Chapter 14: AWS CloudFormation
What is CloudFormation?
Authoring and template anatomy
Intrinsic functions
Cross stack references
Creating a base network using CloudFormation
Validating a base network template
Running a base network template
Creating an EC2 instance using CloudFormation
Nested stack
Stack policies
Helper scripts
Dropping the template
Summary
Chapter 15: AWS CloudWatch
CloudWatch
Simple Notification Service
Monitoring EC2 instances
Creating an alarm for an EC2 instance
Custom monitoring for an EC2 instance
Monitoring RDS DB instances
CloudWatch logs
Summary
Chapter 16: AWS Resource Auditing
Introduction to CloudTrail
AWS Config
Removing the delivery channel and recorder
Summary

What You Will Learn

  • Install the AWS Tools for PowerShell 6
  • Understand key services provided by Amazon Web services (AWS)
  • Understand the Virtual Private Cloud
  • Use PowerShell 6 for AWS Identity and Access Management (IAM)
  • Use PowerShell 6 for AWS Elastic Compute Cloud (EC2)
  • Use PowerShell 6 for AWS Simple Storage Service (S3)
  • Use PowerShell 6 for AWS Relational Database Service (RDS)
  • Build fault-tolerant and highly-available applications using PowerShell 6

Authors

Table of Contents

Chapter 1: PowerShell Essentials
Why PowerShell?
Running PowerShell
Reading the PowerShell language
Getting and exploring help options
Discovering cmdlets and aliases
Learning cmdlets
Risk mitigation parameters
Working with output
Running PowerShell remotely
Building parameterized script
Comment-based help
Summary
Chapter 2: The AWS Overview
Disruptive innovations - AWS Cloud
The benefits of AWS cloud computing
Common challenges of shifting to the cloud
The AWS global infrastructure
Security and compliance
AWS services
Laying out foundations
The AWS sign up
Get supported
Summary
Chapter 3: Installing PowerShell Core and AWS Tools
AWS Tools for PowerShell
Installing PowerShell 6 On Windows
Installing PowerShell 6 on Linux
Prerequisites for AWS Tools
Downloading and installing AWS Tools
Enabling script execution
Finding the AWS Tool version
Updating AWS Tools for PowerShell
Summary
Chapter 4: AWS Identity and Access Management
The AWS-shared responsibility model
Setting up AWS Tools for access
Managing AWS credentials
The AWS credential search order
Creating IAM users
Creating IAM groups
Accessing the AWS console
Accessing AWS via CLI
Removing a policy from the group
Revoking a policy from the user
What are IAM roles?
IAM policies
Dropping groups, roles, and users
Dropping PowerShell AWS profiles
The use case - access key rotation
Summary
Chapter 5: AWS Virtual Private Cloud
Laying the foundation
Virtual Private Cloud
Internet Gateways
Route Tables
Subnets
NAT Gateway
Network Access List
Security Groups
Summary
Chapter 6: AWS Elastic Compute Cloud
The characteristics of AWS EC2
The EC2 instance purchasing options
Understanding IP addresses on EC2
Storage options on EC2
Spinning up an EC2 instance
Accessing the EC2 instance
The EC2 instance metadata service
Stopping the EC2 instance
Starting the EC2 instance
The Elastic IP address
Terminating the EC2 instance
Placement Groups
Assigning an IAM role to the EC2 instance
The types of EBS
Amazon Machine Images
EBS snapshots
Summary
Chapter 7: AWS Simple Storage Service
AWS Glacier
Storage classes on S3
The S3 bucket
Folders and objects
Downloading folders and objects from the S3 bucket
Managing S3 permissions
Building S3 VPC endpoints
S3 Transfer Acceleration
S3 versioning
S3 lifecycle policies
Cross-region replication
Removing the S3 bucket
Summary
Chapter 8: Elastic Load Balancer
Why load balancer?
Types of Elastic Load Balancers
Application Load Balancer components
Creating Classic Load Balancer
Creating Application Load Balancer
Deleting Elastic Load Balancer
Summary
Chapter 9: Auto Scaling
Auto Scaling components
Auto Scaling lifecycle
Fleet management
Dynamic scaling
Creating launch configuration
Creating an Auto Scaling Group
Increasing a fleet manually
Scaling-Out and Scaling-In dynamically
Scaling on schedule
Lifecycle hooks and cooldown
Termination policies
Termination protection
Suspending the Auto Scaling process
Standby mode
Deleting an Auto Scaling Group
Summary
Chapter 10: Laying Foundation for RDS Databases
Database engines on RDS
Deployment consideration
DB instance classes
Multi-AZ and standby
Read replicas
Compliance
Data encryption
Database access and IAM
DB Security Groups
DB Subnet Groups
DB Parameter Groups
DB Option Groups
Summary
Chapter 11: DB Instance Administration and Management
RDS storage type
Licensing models on RDS
Understanding maintenance windows
Spinning up RDS DB instances
Multi-AZ deployment
Enabling encryption on RDS
Connecting to an RDS instance with and without SSL
Stop, start, and restart of a DB instance
Adding space to a DB instance
RDS backup
RDS restore
Manual snapshot of the RDS instance
Deleting an RDS instance
Checking account limit and attributes
Summary
Chapter 12: Working with RDS Read Replicas
Creating read replicas
Rebooting read replicas
Connecting to a read replica
Promoting read replicas to primary
Deleting read replicas
Use case - balancing traffic between read replicas
Summary
Chapter 13: AWS Elastic Beanstalk
What is Elastic Beanstalk?
Elastic Beanstalk components
Environment types
Understanding deployment models on Elastic Beanstalk
Creating application
Creating a configuration template
Deploying a popular WordPress application
Cloning an environment
Swapping an environment CNAME
Deleting an environment and application
Summary
Chapter 14: AWS CloudFormation
What is CloudFormation?
Authoring and template anatomy
Intrinsic functions
Cross stack references
Creating a base network using CloudFormation
Validating a base network template
Running a base network template
Creating an EC2 instance using CloudFormation
Nested stack
Stack policies
Helper scripts
Dropping the template
Summary
Chapter 15: AWS CloudWatch
CloudWatch
Simple Notification Service
Monitoring EC2 instances
Creating an alarm for an EC2 instance
Custom monitoring for an EC2 instance
Monitoring RDS DB instances
CloudWatch logs
Summary
Chapter 16: AWS Resource Auditing
Introduction to CloudTrail
AWS Config
Removing the delivery channel and recorder
Summary

Book Details

ISBN 139781785884078
Paperback372 pages
Read More

Read More Reviews

Recommended for You

PowerShell for Office 365 Book Cover
PowerShell for Office 365
$ 31.99
$ 22.40
Windows PowerShell for .NET Developers - Second Edition Book Cover
Windows PowerShell for .NET Developers - Second Edition
$ 39.99
$ 28.00
PowerShell for SQL Server Essentials Book Cover
PowerShell for SQL Server Essentials
$ 17.99
$ 12.60
Windows PowerShell 4.0 for .NET Developers Book Cover
Windows PowerShell 4.0 for .NET Developers
$ 20.99
$ 14.70
Mastering Windows PowerShell 5 Administration [Video] Book Cover
Mastering Windows PowerShell 5 Administration [Video]
$ 104.99
$ 89.25
Instant Oracle Database and PowerShell How-to Book Cover
Instant Oracle Database and PowerShell How-to
$ 19.99
$ 14.00