Download AWS Tools for Windows PowerShell User Guide
Transcript
AWS Tools for Windows PowerShell User Guide Table of Contents What are the AWS Tools for Windows PowerShell? .............................................................................. 1 How to Use this Guide ............................................................................................................ 1 Getting Set Up .............................................................................................................................. 2 Getting Setup ....................................................................................................................... 2 Prerequisites ................................................................................................................ 2 Download and Install the PowerShell Tools ......................................................................... 3 Enable Script Execution .................................................................................................. 3 Configure a PowerShell Console to Use the Tools ............................................................... 4 Versioning .................................................................................................................... 5 AWS Account and Access Keys ............................................................................................... 6 See Also .............................................................................................................................. 7 Getting Started ............................................................................................................................. 8 AWS Credentials ................................................................................................................... 8 Managing Profiles .......................................................................................................... 9 Specifying Credentials .................................................................................................. 10 Credentials Search Order .............................................................................................. 11 AWS Regions ..................................................................................................................... 11 Cmdlets Discovery and Aliases .............................................................................................. 13 Cmdlet Discovery ........................................................................................................ 13 Cmdlet Naming and Aliases ........................................................................................... 14 Pipelining and $AWSHistory .................................................................................................. 15 $AWSHistory .............................................................................................................. 15 See Also .................................................................................................................... 18 Using the AWS Tools for Windows PowerShell .................................................................................. 19 Amazon EC2 ...................................................................................................................... 20 Create a Key Pair ........................................................................................................ 20 Create a Security Group ............................................................................................... 22 Find an AMI ................................................................................................................ 26 Launch an Instance ...................................................................................................... 28 Amazon S3 ......................................................................................................................... 31 Create an Amazon S3 Bucket, Verify Its Region, and Optionally Remove It ............................ 31 Configure an Amazon S3 Bucket as a Website and Enable Logging ...................................... 32 Upload Objects to an Amazon S3 Bucket ......................................................................... 33 Delete Amazon S3 Objects and Buckets .......................................................................... 34 Upload In-Line Text Content to Amazon S3 ....................................................................... 35 AWS Identity and Access Management ................................................................................... 36 Create New IAM Users and Groups ................................................................................ 36 Set an IAM Policy for an IAM User .................................................................................. 37 Set an Initial Password for an IAM User ........................................................................... 38 Create Security Credentials for an IAM User ..................................................................... 38 Amazon SNS and SQS ......................................................................................................... 39 Create an Amazon SQS queue and get queue ARN .......................................................... 39 Create an Amazon SNS topic ........................................................................................ 39 Give permissions to the SNS topic .................................................................................. 40 Subscribe the queue to the SNS topic ............................................................................. 40 Give permissions ......................................................................................................... 41 Verify results ............................................................................................................... 41 CloudWatch ........................................................................................................................ 42 Publish a Custom Metric to Your CloudWatch Dashboard .................................................... 42 See Also ............................................................................................................................ 43 Document History ....................................................................................................................... 44 AWS Tools for Windows PowerShell v1.1.1.0 ............................................................................ 44 AWS Tools for Windows PowerShell v1.0.1.0 ............................................................................ 44 AWS Tools for Windows PowerShell v1.0.0.0 ............................................................................ 45 Version 1.0 iii