AWS S3 bucket • Uploading objects with presigned URLs

PUT mission failed – 403 Access Denied

My team experienced an issue when generating a presigned URL and using the PUT method to upload images to an Amazon S3 bucket.

I haven’t experienced any issues with presigned URLs before. However, since developers have reported problems, I am trying to rule out any issues in the resource settings for which I am responsible.

Continue reading AWS S3 bucket • Uploading objects with presigned URLs

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.