Can I create EC2 instances asynchronously

0 votes

I'm using boto3 to create aws ec2 instances.

ec2 = boto3.resource('ec2', region_name='us-east-1')
ec2.create_instances(..)

can't find async options. Can someone help as how can I do that?

Mar 28, 2019 in AWS by william
769 views

1 answer to this question.

0 votes

Unfortunately there is no legit async function for that in the API. You can do an async call in another thread, there is multiple ways to do this in python. There is an unofficial Async AWS python SDK aioboto3. It does not contain your API call today but you can contribute if you like.

answered Mar 28, 2019 by Ritu

Related Questions In AWS

0 votes
1 answer

AWS EC2 Free Tier- how many instances can i run?

Amazon has a handy page that details ...READ MORE

answered Jul 6, 2018 in AWS by Priyaj
• 58,100 points
3,013 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

How can I find out the instance id of an ec2 instance from within the ec2 instance?

A curl or wget to http://169.254.169.254/latest/meta-data/instance-id will ...READ MORE

answered Mar 9, 2020 in AWS by anonymous
6,816 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,100 points
2,891 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Usage in EC2 instance in AWS

If you are using your application in ...READ MORE

answered Mar 28, 2019 in AWS by Kilga
429 views
0 votes
1 answer

Permission Denied: AWS EC2 FTP

This is a permission issue. You can ...READ MORE

answered Mar 28, 2019 in AWS by Kolki
2,070 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP