Preparation steps
Preparation steps
In this section, you create the resources that CloudFront uses as origins:
- Amazon VPC: a network with public subnets and an Internet Gateway, so CloudFront can reach the EC2 instance over the internet.
- Amazon EC2: an instance running a small API, used as the dynamic content origin.
- Amazon S3: a bucket storing
index.html, used as the static content origin.