We use this for the next step, amending Putty.
- Assumptions :
- We know the instance-id
- We have a working CLI.
So we use ec2-describe-instances
C:\Users\Chris\.aws>
We use a filter to only get info for our instance.
We use a query to only output the Public DNSNAME
aws ec2 describe-instances
--filters "Name=instance-id,
Values=i-xxxxxx"
--query
"Reservations[*].Instances[*].{dz:PublicDnsName}"
--output text
C:\Users\Chris\.aws>aws ec2 describe-instances --filters "Name=instance-id,Value
s=i-xxxxxxxx" --query "Reservations[*].Instances[*].{dz:PublicDnsName}" --output
text
ec2-255-255-255-5255.eu-west-1.compute.amazonaws.com
So now we have our public DNSNAME, and with that we can change our putty settings !
No comments:
Post a Comment