Tips & Tricks

AWS Cli Commands to remember

Just some commands for me to remember so I can look it up easily.

Upload Certificate:
aws iam upload-server-certificate --server-certificate-name ulyaoth --certificate-body file://2_ulyaoth.crt --private-key file://3_ulyaoth.key --certificate-chain file://1_Intermediate.crt --path /cloudfront/

Delete Certificate:
aws iam delete-server-certificate --server-certificate-name ulyaoth

Sync S3: (add –dryrun for test)
aws s3 sync --delete .\Repository\RPMs\ s3://repos.ulyaoth.net/ --exclude "*System Volume Information/*"

Cloudfront Batch Invalidation: (invalidate-ulyaoth-repository-fedora.json)
aws cloudfront create-invalidation --invalidation-batch file://invalidate-ulyaoth-repository-fedora.json --distribution-id XXXXXXX

Related posts

How to install a graphical desktop on Fedora Server

Sjir Bagmeijer

Courses I did to become a cloud ninja

Sjir Bagmeijer

Output to Elasticsearch with Rsyslog in Logstash format

Sjir Bagmeijer

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More