From 86cfb9e3fb2c89fd90d98465d25c78385ab78a4b Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Thu, 23 Jul 2020 19:48:32 +0100 Subject: [PATCH] Adding AWS Commands --- blog/aws-commands.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 blog/aws-commands.md diff --git a/blog/aws-commands.md b/blog/aws-commands.md new file mode 100644 index 0000000..c16258e --- /dev/null +++ b/blog/aws-commands.md @@ -0,0 +1,17 @@ +# AWS Commands + +## S3 + +### Sync contents of folder to bucket + +`aws s3 sync . s3://prod-panaetius-blog-origin --delete --profile admin` + +## Cloudfront + +### Create invalidation + +`aws cloudfront create-invalidation --distribution-id E2IHXIMPI3MZ2X --paths "/*" --profile admin` + +### Get invalidation status + +`aws cloudfront get-invalidation --distribution-id E2IHXIMPI3MZ2X --id I2IYTT15CTHJU0 --profile admin`