---
title: "Amazon Web Services发布AWS Tools For Windows PowerShell"
author: "mmdev"
date: "2013-01-21T01:11:00Z"
tags: []
slug: "amazon-web-services-aws-tools-for-windows-powershell"
draft: false
lastmod: "2013-03-06T09:39:43Z"
id: 1823107
url: "https://mmdev.iteye.com/blog/1823107"
---

本文来源于我在InfoQ中文站翻译的文章，原文地址是：http://www.infoq.com/cn/news/2013/01/aws-tools-powershell

近日，[Amazon Web Services（AWS）](http://aws.amazon.com/)发布了针对[Windows PowerShell](http://www.infoq.com/news/2012/06/powershell-3-devops)脚本环境的工具以增强对Windows管理员的云基础设施管理的支持。

新的[AWS Tools for Windows PowerShell](http://aws.amazon.com/en/powershell/)包含了550多个所谓的[cmdlets](http://msdn.microsoft.com/en-us/library/windows/desktop/ms714395%28v=vs.85%29.aspx)。这些cmdlets可以使Windows管理员在PowerShell脚本环境中使用[AWS SDK for .NET](http://aws.amazon.com/sdkfornet/)所公开的功能。管理员现在可以使用PowerShell命令行自动化AWS服务。

除了在[初始的12月发布](http://aws.amazon.com/releasenotes/PowerShell/5239959150369789)中所支持的20多个服务外，[1.0.1版](http://aws.amazon.com/releasenotes/0160425263991151)还增加了对[AWS Direct Connect](http://docs.amazonwebservices.com/directconnect/latest/UserGuide/Welcome.html)、[AWS Data Pipeline](http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/what-is-datapipeline.html)及[Amazon Elastic Block Store（EBS）Snapshot Copy](http://techcrunch.com/2012/12/18/amazon-web-services-now-makes-it-easier-to-move-ebs-snapshots-between-regions/)的支持。

PowerShell cmdlets支持很多AWS服务，如创建与管理[Amazon EC2](http://aws.amazon.com/ec2/)实例、、使用[Amazon S3](http://aws.amazon.com/s3/)存储与获取文档以及使用[AWS Identity and Access Management（IAM）](http://aws.amazon.com/iam/)处理认证与授权。

Windows管理员可以[使用一条命令就能完成一些简单的任务/a&gt;，如创建新的EC2实例。此外，他们还可以在PowerShell中编写脚本以自动化更多的处理过程，如编排服务集群，包含了Amazon EC2实例、](http://docs.amazonwebservices.com/powershell/latest/userguide/pstools-ec2-launch.html)[Amazon RDS](http://aws.amazon.com/rds/)数据库以及使用[Amazon CloudFront](http://aws.amazon.com/cloudfront/)的内容交付服务。

下面的示例介绍了如何使用PowerShell创建一个Amazon EC2实例：

```
PS C:> New-EC2Instances -ImageId ami-269dbb63 -MinCount 1 -MaxCount 2 -KeyName PowerShellKeyPair -SecurityGroup PowerShellSecurityGroup -InstanceType m2.2xlarge
```

The AWS Tools for Windows PowerShell可以运行在安装有[Microsoft PowerShell 2.0+](http://support.microsoft.com/kb/968929/en-us)的Microsoft Windows XP及之后的系统上。他们是[AWS Toolkit for Microsoft Visual Studio](http://aws.amazon.com/visualstudio/)的一部分。Amazon提供了一个文档，介绍了如何[设置AWS Tools for Windows PowerShell](http://docs.amazonwebservices.com/powershell/latest/userguide/pstools-getting-set-up.html)。

**查看英文原文：**[Amazon Web Services Launches AWS Tools For Windows PowerShell](http://www.infoq.com/news/2013/01/aws-tools-powershell)