aws boto 使用
When I first joined a DevOps/SRE team, I realized there were a lot of simple AWS infrastructure changes that took up a large chunk of our engineering team’s time. I didn’t want to spend my valuable coding time on these manual, yet essential, tasks so I set out on a mission to automate them. Since I had wanted to build my Python scripting skills anyway, I discovered a way to solve two problems at once — using the software development kit Boto 3 to automate my simple, manual AWS tasks using Python.
当我第一次加入DevOps / SRE团队时,我意识到有很多简单的AWS基础架构更改占用了我们工程团队的大部分时间。 我不想将宝贵的编码时间花在这些手动但必不可少的任务上,因此我开始执行使它们自动化的任务。 由于我一直想提高自己的Python脚本编写技能,因此我发现了一种同时解决两个问题的方法-使用软件开发套件 Boto 3 使用Python自动执行我的简单手动AWS任务。
Boto 3 is your new best friend when it comes to creating Python scripts for AWS resources. According to the documentation, “Boto is the Amazon Web Services (AWS) SDK for Python. It enables Python developers to create, configure, and manage AWS services, such as EC2 and S3. Boto provides an easy to use, object-oriented API, as well as low-level access to AWS services.”
在为AWS资源创建Python脚本时,Boto 3是您最好的新朋友。 根据文档 ,“ Boto是适用于Python的Amazon Web Services(AWS)SDK。 它使Python开发人员能够创建,配置和管理AWS服务,例如EC2和S3。 Boto提供了易于使用的,面向对象的API,以及对AWS服务的低级访问。”
Before working with Boto 3 it is important to correctly download and configure it. Check out their instructions on how to set your credentials.
在使用Boto 3之前,正确下载和配置它很重要。 看看他们说明如何设置您的凭据。
Boto 3 makes it easy to get all the informati