Building cloud components using boto3
As we saw in the Setting up an AWS account recipe, it is possible to do many things in AWS through the Management Console. You could build your own systems of cloud components, servers, and databases, all through a point-and-click interface.
However, today’s cloud practitioners prefer to build systems through scripts that can be tracked, checked in, and reproduced. You can use a library from AWS called boto3 to programmatically create, manipulate, and destroy resources – https://boto3.amazonaws.com/v1/documentation/api/latest/index.html. You can also define templates that specify components and their parameters. This is known as Infrastructure as Code (IaC).
By using IaC, we can make sure that our components are made in a way that is documented. We can then check our component definitions into a code repository such as GitHub and take advantage of version control. We can also make the generation of cloud components automated...