3

Is there a way of getting instance's description (eg, instance ID, AMI ID, VPC ID....etc) and tags using Powershell?

I tried Get-EC2Instance | select * but it doesn't give all the information I need.

1 Answer 1

3

Good starting point would be to store your instances in a variable.

$ec2 = Get-EC2Instance
$ec2.instances

will display all the info you can get.

Same can be done like this

(Get-EC2Instance).Instances

or filter only what you need.

(Get-EC2Instance).Instances | select-object ImageId,InstanceId,VpcId
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.