It seems that EC2Config for AMI provided by Amazon now supports "User Data Counters" compared to the April 11, 2012 updates.
The documentation has not yet been updated, so itβs difficult to determine if it supports PowerShell or just cmd.exe scripts. I posted a question on the AWS forums to try to get more details and will update here when I learn more.
UPDATE: It appears that the batch syntax cmd.exe is supported, which in turn can cause PowerShell. There is a new version of the EC2Config documentation included in the AMI. Quote from this:
[EC2Config] will read the user data specified for the instance, and then check whether it contains the <script> and </script> . If he finds both, he will receive information between these two tags and save it in a batch file located in the Settings folder of this application. Then it will execute the batch file during instance startup.
A batch file will only be created and executed when the instance is first started after sysprep. If you want the batch file created and executed to set the Ec2HandleUserdata plugin state to Enabled again.
UPDATE 2: My interpretation is confirmed by Sean from the AWS team
UPDATE 3: And since May 2012, PowerShell is supported using the <powershell/> .
David Rubin
source share