Terraform: Use a useful unique zip-name based on a md5 checksum

Often times, a unique filename is needed for use in Terraform. We usually create resource "random_string".

resource "random_string" "random" {
  length = 5
  special = false
}

data "archive_file" "lambda" {
  type        = "zip"
  source_file = "lambda.py"
  output_path = "lambda-${random_string.random.result}.zip"
}

I think it is a good idea to include the hash (md5 checksum) of its contents in the name of the archive. Then you can verify if the file content is compatible with the archive without having to unpack it.

Continue reading Terraform: Use a useful unique zip-name based on a md5 checksum

Ubuntu can’t sync Dropbox on ecryptfs. Wants a supported file system.

I have a standard Ubuntu installation. With encrypted home. And Dropbox installed everywhere. Except fridge. macOS, CentOS, Windows, Android, iOS… But Dropbox has stopped loving Linux.

/dev/sdb2 on / type ext4 (rw,relatime,errors=remount-ro)
/home/.ecryptfs/loop/.Private on /home/loop type ecryptfs

Requirements. Wait a minute: Continue reading Ubuntu can’t sync Dropbox on ecryptfs. Wants a supported file system.