Skip to content

How to get IAM role name attached to Windows EC2 #2112

Answered by ashishdhingra
dburtsev asked this question in Q&A
Discussion options

You must be logged in to vote

@dburtsev The PowerShell CmdLet Get-EC2InstanceMetadata uses GetData(path) method of Amazon.Util.EC2InstanceMetadata static helper class to retrieve EC2 instance metadata. This class is present in AWSSDK.Core NuGet package. You may consume this NuGet package and retrieve EC2 instance metadata.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. module/sdk-core
2 participants