Skip to content

Instantly share code, notes, and snippets.

@bo67192
Created November 3, 2016 23:33
Show Gist options
  • Save bo67192/71d800f6807bda0d501a157ec6a50757 to your computer and use it in GitHub Desktop.
Save bo67192/71d800f6807bda0d501a157ec6a50757 to your computer and use it in GitHub Desktop.
Powershell get-ec2instance with filter and piped to where
(Get-EC2Instance -filter @( @{name='tag:Name';values="*Webserver*"})).instances | where {$_.InstanceType -eq "t2.micro"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment