Whitelist an IP in Amazon AWS security group from command line

To white list an IP in Amazon AWS security group using aws command line tool, run

Example

[…]

Read More…

Amazon S3 CORS

To enable CORS for Amazon S3 bucket, add

[…]

Read More…

Enable Gzip in Amazon Linux

To verify Apache module is loaded, run

Create file

Add following content

Restart Apache with

To verify gzip is working, run

You will see something like NOTE: gzip compression only works if you have a reasonably large file. If your file is very small, then gzip won’t do anything. See […]

Read More…

Configure Postfix to use Amazon SES

Install postfix with

Update postfix config with

Edit

Add to end of the file

In the above, replace SMTP_SERVER_NAME with your Amazon SES mail server, for example “email-smtp.us-east-1.amazonaws.com”, you can see it in your Amazon SES console. Run

Replace SMTP_SERVER_NAME, SMTP_USERNAME and SMTP_PASSWORD with your actual credentials. Now run

[…]

Read More…

Install Amazon AWS awscli

awscli is a command line tool for Amazon AWS. To install, run

You can find more details at https://docs.aws.amazon.com/cli/latest/reference/ Once installed, you need to configure it

To sync content of a folder to Amazon S3 bucket, run

Whitelist IP in AWS security group using awscli Amazon AWS create key pair using awscli […]

Read More…