You can set up CloudFront through AWS CLI commands, CloudFormation, or the AWS Management Console. In this recipe, we will look at how to set up CloudFront for an S3 bucket configured as a static website, through CLI commands and CloudFormation template.