Adding AWS Commands

This commit is contained in:
2020-07-23 19:48:32 +01:00
parent 8007f0512d
commit 86cfb9e3fb

17
blog/aws-commands.md Normal file
View File

@@ -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`