I have been able to configure the CDN using this document:
Basically you have to:
1.- Menu: Performance \ General Settings \ CDN –> Activate the CDN in the W3 Total Cache:
![](https://joapen.com/blog/wp-content/uploads/2021/12/image-6-1024x294.png)
2.- In AWS go to : https://console.aws.amazon.com/iam/home#/security_credentials$access_key
Create an “Access key”:
![](https://joapen.com/blog/wp-content/uploads/2021/12/image-7-1024x591.png)
3.- Menu: Performance \ CDN —> enter the credentials, and then “Create Distribution”. If there is no error, then “Save settings & purge cache”.
![](https://joapen.com/blog/wp-content/uploads/2021/12/image-8-1024x423.png)
Note: the recommendation is the creation of a policy. I still need some time to do this.
The result
I have improved the grade under GTmetrix rules, from “D” to “A” from Vancouver.
![](https://joapen.com/blog/wp-content/uploads/2021/12/image-5-1024x453.png)