want to Login to windows servers ec2 and pass some set of commands on perticular schedule say 12 hr how can i do that using boto3

+1 vote
May 27, 2020 in AWS by shubham
• 130 points
280 views

Hello

I want to login to windows servers, will this work??

and Similarly this code will be under lambda so both keys will be expose!!!


Your base system is Linux, right?

You can create one file with your credentials and import that file.

1 answer to this question.

0 votes

Hi@shubham,

If you have a Linux system, then you can configure your AWS credentials using boto3 as given bellow.

session = boto3.Session(
    aws_access_key_id=ACCESS_KEY,
    aws_secret_access_key=SECRET_KEY,
    aws_session_token=SESSION_TOKEN,
)

After that you can create one cron job and schedule your commands accordingly.

answered May 27, 2020 by MD
• 95,340 points

Related Questions In AWS

0 votes
1 answer

How do I invoke another lambda async and pass context to it?

I tried several times trying to pass ...READ MORE

answered Apr 27, 2018 in AWS by Cloud gunner
• 4,650 points
5,379 views
0 votes
1 answer

Deploy multiple platforms to Elastic Beanstalk

Solve by using .ebextentions to run pre-install commands in ...READ MORE

answered Nov 28, 2018 in AWS by Archana
• 5,640 points
508 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP