Edit: Date's are now fixed to the correct format by setting environment varible in the following manner and then specifying LOCALE = 'en_GB.UTF-8
in pelicanconf.py
:
export LC_ALL=C
I've also programatically figured out how to invalidate the Cloudfront cache now using:
aws cloudfront create-invalidation --distribution-id your_distribution_id_here --paths "/"
You can then check the invalidation has completed a very short time later using:
aws cloudfront list-invalidations --distribution-id your_distribution_id_here
This will return a JSON object as below and the last entry confirms the invalidation is complete:
json
{
"InvalidationList": {
"Items": [
{
"Id": "your_dist_id_here",
"CreateTime": "2023-10-14T07:56:11.019000+00:00",
"Status": "Completed"
},
]
}
}
The next steps are to modify the makefile command to include these steps, which will cut down the publish time and effort required to publish an article once written.
Edit: The above is now sorted and s3_upload