Python Script to create AWS instances using Boto3
该项目收到15 来自天才威客的竞标，平均竞标价格为$193 USD。为像这样的项目获取免费报价
项目预算$30 - $250 USD
I started writing a Python Script so that I can automate creating different instances in AWS and attach (if I need to) extra storage (EBS volumes) to them.
I need help and here's what I want it to do:
I want a script where I can run and say - I want 3 [url removed, login to view], 2 [url removed, login to view], and 1 [url removed, login to view] and on the [url removed, login to view] I need an extra 250gb ssd (io1) attached to it.
So, it will need some inputs, when the instance creates (if I designate more hdd space) will need to attach to the ebs Vol (so, return the instance_ID) and add tags based on stack.
Example for that is "tag=input("what is the name of this stack") : client-001
Also, would be nice to pass different subnets in their as well and regions.
Attached is what I started, and I can create an instance but I cannot return the instance_id and I can't get the EBS to create/attach to it automatically.
[url removed, login to view]
- The New York Times
- Wall Street Journal
- Times Online