CloudFormation is an infrastructure service.
It lets you create templates that describe the AWS services that you want.
Then, it handles the config and provisioning of the resources described in the template.
It makes it easier because you do not have to configure the resources individually.
CloudFormation helps to handle the dependencies between the resources.
https://www.w3schools.com/aws/aws_cloudessentials_awscloudformation.php