radhika
radhika

Reputation: 39

How to download .rdp file in AWS using Python Boto3

I have few windows based EC2 instances on AWS, i am using python/ boto 3 How can i download the .rdp file for all those instances on my local machine via my script

Please suggest Many thanks.

Upvotes: 0

Views: 309

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270104

I don't think you can. However, you could create your own, since an RDP file simply contains text.

See: c# - How to generate an RDP file - Stack Overflow

You can call get_password_data() to retrieve the encrypted administrator password for a running Windows instance, but I don't think it is stored in the RDP file.

Upvotes: 1

Related Questions