AWS Boto3 - Python to Terraform
#week_twenty - Boto3 SDK
duration: 1 week
ForgTech company wanna test your ability to deliver their requirements utilizing AWS Python SDK libraries, This will help you build a good reputation.
The purpose of this task is to build a CLI tool using Python/Boto3 calls to create Terraform code for AWS resources.
The FrogTech Cloud Team requests you to implement local Python scripts with AWS Boto3 SDK that meet the following requirements:
- Enable the user to specify the region.
- List the specified region resources (i.e. VPC, EC2, enough as a POC)
- Create a Terraform file that contains the required details to create the fetchd VPCs.
- Consider docstrings and typehints.
- By using docstrings and typehints, create a public documentation that explains your tool by MkDocs.
- Consider using function-based:
a. List functions under the utils directory.
```text
1 utils
2 |__ function.py
3 |__ function2.py
4 main.py
```
b. A function does one thing only.
c. List related functions in the same file.
- Consider using the main file only to call all the functions and handle their dependencies.
- Consider the Python PEP8 code standardization (i.e. by installing vscode extensions like pylint, Black, or even ruff)
- Consider using assertions for debugging purposes only.
As well as build a Readme file explaining what your tool is doing and how to use it.
Bouns
-
Read about pyproject.toml.
-
Read about Linear Regression in Python.
-
Read about How to Publish an Open-Source Python Package to PyPI.