def create_elastic_filesystem(region, vpc_id, private_subnets, security_group_id):
print("""
As Elastic File System is a relatively new service, API support is far from complete. You will need to create the file system
in the AWS EFS Console. A browser window will open for you to create the file system. Several prompts from this script will
guide you through the process.
You will need to be already logged into the AWS Console on your browser.
Ensure you select all listed availability zones.
""")
input("Ready to proceed? ")
input(" Please note the VPC Id: %s, you will need to select this from wizard when it opens in the browser - ok? " %(vpc_id))
input(" Please ensure you place this file system in the following subnets: %s - ok?" % (private_subnets))
input(" Please also ensure the following security group is selected, in addition to the default security group: %s - ok?" % (security_group_id))
webbrowser.open_new("https://%s.console.aws.amazon.com/efs/home?region=%s#/wizard/1" % (region, region))
mount_point = input("Once you have completed the wizard please paste the mount point from the browser at the prompt: ")
return mount_point
#
# Do VPC creation
#
create_eb_vpc_with_ec2_api.py 文件源码
python
阅读 82
收藏 0
点赞 0
评论 0
评论列表
文章目录