Month: May 2018

Encrypting AWS EC2 Root Volumes (EBS) – and Moving Non-Root Volumes to a New AZ

Encrypting AWS EC2 Root Volumes (EBS) You cannot encrypt the root volume of a standard Amazon provided EC2 / EBS volume. You can take a snapshot of the volume, make an encrypted copy and use that copy to create a custom AMI with it, and encrypt it then. Moving Non-Root Volumes to a New Availability …

Encrypting AWS EC2 Root Volumes (EBS) – and Moving Non-Root Volumes to a New AZ Read More »

Installing and managing postgreSQL and loading data into postgreSQL

Installing, managing postgreSQL and loading data into postgreSQL postgreSQL maybe pre-installed with many versions of Linux – if so you’ll see a postgres user sudo -i -u postgres If you get an error, and the postgres user does not exist then – install postgreSQL as root Directions are here: https://www.postgresql.org/download/linux/ubuntu/ Or here https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04 Once you …

Installing and managing postgreSQL and loading data into postgreSQL Read More »

Example aws cli command to write an item to DynamoDB table that exists

Example aws cli command to write an item to DynamoDB table that exists – put-item https://docs.aws.amazon.com/cli/latest/userguide/cli-dynamodb.html shorthand cli commands – shortens json https://docs.aws.amazon.com/cli/latest/userguide/shorthand-syntax.html My sample put-item to Contacts table aws dynamodb put-item \ –table-name Contacts \ –item ‘{ “ContactName”: {“S”: “JBird”}, “ContactSeq”: {“N”: 63} , “AlbumTitle”: {“S”: “Somewhat Famous”} }’ \ –return-consumed-capacity TOTAL { “ConsumedCapacity”: …

Example aws cli command to write an item to DynamoDB table that exists Read More »