A quick way to make a new post

Pass this code to your config.yml

#https://blog.cavelab.dev/2021/08/deploying-hugo-blog-to-s3/
deployment:
  targets:
    - name: Name the Tagrets 
      URL: 's3://marcinmitruk.link?region=your-region-2or1'
      # cloudFrontDistributionID: <CF-Distribution-ID>
  matchers:
    - pattern: ^.+\.(js|css|svg|ttf|woff|woff2|eot|png|jpg|gif|svg|ttf)$
      cacheControl: 'max-age=630720000, no-transform, public'
      gzip: true
    - pattern: ^.+\.(html|xml|json)$
      gzip: true

Create new post…

hugo new posts/some-title.md

and

run local server tape hugo server to deploy on AWS s3 after the previous configuration type.

hugo && hugo deploy

Yes, This is simple.