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
181 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
• 57,700 points
1,367 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 in AWS by anonymous
864 views
0 votes
1 answer
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
57 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
786 views