Open RDP to Amazon EC2 Instance

Amazon.AmazonWebServices.OpenRDPtoAmazonInstanceTask (ConsoleTask)

This task opens the Remote Desktop connection to Amazon EC2 Instance.

Element properties:

TargetAmazon.AmazonWebServices.AmazonInstance
Applicationmstsc.exe
WorkingDirectory
isRequireOutputFalse
AccessibilityPublic
EnabledTrue

Source Code:

<ConsoleTask ID="Amazon.AmazonWebServices.OpenRDPtoAmazonInstanceTask" Accessibility="Public" Enabled="true" Target="Amazon.AmazonWebServices.AmazonInstance" RequireOutput="false">
<Assembly>Amazon.AmazonWebServices.OpenRDPtoAmazonInstanceTaskAssembly</Assembly>
<Handler>ShellHandler</Handler>
<Parameters>
<Argument Name="WorkingDirectory"/>
<Argument Name="Application">mstsc.exe</Argument>
<Argument>/v:$Target/Property[Type="Amazon.AmazonWebServices.AmazonInstance"]/PublicDnsName$</Argument>
</Parameters>
</ConsoleTask>