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 26, 2020 in AWS by shubham
• 130 points
188 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,140 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
4,753 views
0 votes
1 answer
0 votes
1 answer

How can I do Continuous data ingestion from on prem data sources to redshift

I can Recommend looking into AWS Schema ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 58,100 points
905 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
343 views