O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AWS Tools for PowerShell 6

Book Description

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

About This Book

  • A collection of real-world-tested Powershell scripts that can be used to manage your Windows server efficiently
  • Follow step-by-step processes to solve your problems with Windows servers using AWS tools
  • Design examples that work in the Amazon free usage tier, which lets you run the Windows platform on cloud
  • Who This Book Is For

    This book will be useful for (but not limited to) Windows System administrators, cloud engineers, architects, DevOps engineers, and all those who want to accomplish tasks on the AWS Public Cloud using PowerShell.

    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
  • In Detail

    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.

    Style and approach

    This step-by-step guide starts with simple examples then expands to full-blown administrative tasks leading to the efficient management of Windows servers. Each topic covers a section related to Amazon Web Services products, and the examples are built on one another to deliver a comprehensive library of scripts for administrators.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

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