Загрузка страницы

Managing Windows Server on Amazon EC2 with AWS Systems Manager and PowerShell Remoting

During this video, we'll explore how you can use AWS Systems Manager's Run Command feature, in conjunction with Windows PowerShell Remoting (available in PowerShell Desktop Edition), to manage Microsoft Windows Server instances running in Amazon Elastic Compute Cloud (EC2).

First, we'll spin up a fleet of 20 Windows Server instances, using EC2 Spot Pricing, which allows us to bid on extra, unused compute capacity in EC2. This helps us save money when running dev / test systems that aren't running critical production workloads.

Once we've spun up some new EC2 instances, we'll set up our EC2 Security Group and make sure Remote Desktop Protocol (RDP), Windows Remote Management (WinRM), and HTTP ports are opened up. Opening these network ports will allow us to manage the Windows Server instances once they've finished initializing.

One of the unique things we'll explore in this video, is how to bind custom properties to the EC2 instance objects in PowerShell, that simplify the process of decrypting and retrieving the auto-generated passwords for each EC2 instance, and establishing PowerShell Remoting sessions to the instances. This technique uses the Add-Member command in PowerShell, which works with PowerShell's Adaptive Type System (ATS), enabling us to add new, custom interfaces to existing objects of any type.

After the EC2 instances have finished provisioning, we'll use the AWS Systems Manager Run Command feature to deploy a PowerShell script that disables the Windows Firewall. Once the Windows Firewall has been disabled, that will open up the ability for us to connect to the EC2 instances from our on-premises management workstation using Visual Studio Code and PowerShell. We can establish PowerShell Remoting sessions to all of the EC2 instances, and send PowerShell commands to the remote systems.

I hope this video offers a unique perspective on managing cloud-based infrastructure using PowerShell.

Microsoft Visual Studio Code: https://code.visualstudio.com/
AWS Tools for PowerShell: https://aws.amazon.com/documentation/powershell/
AWS PowerShell Module: https://www.powershellgallery.com/items?q=awspowershell
PowerShell Core Edition: https://github.com/PowerShell/PowerShell/

Producer: Trevor Sullivan
Website: https://trevorsullivan.net
Twitter: https://twitter.com/pcgeek86
Gab: https://gab.ai/trevors

Amazon Web Services, the “Powered by AWS” logo, [and name any other AWS Marks used in such materials] are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.

#PowerShell #AWS #cloud

Видео Managing Windows Server on Amazon EC2 with AWS Systems Manager and PowerShell Remoting канала Trevor Sullivan
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
6 января 2018 г. 11:17:58
00:26:28
Яндекс.Метрика