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.

Apple Mail: Sygnatura w HTML-u z grafiką, ale nie jako załącznik

Lat temu kilka (naście) e-mail wysyłany musiał być w plain text, a sygnaturka mieć maksymalnie 4 wiersze oddzielone dwoma minusami i spacją. Kto się nie stosował do tych reguł w sieci był w najlepszym przypadku upominany… Cóż trochę się zmieniło. Teraz jak komuś zrobi się Reply i swoją treść umieści pod tekstem cytowanym… ech… Continue reading Apple Mail: Sygnatura w HTML-u z grafiką, ale nie jako załącznik

Windows i błąd mapowania zasobu

Taka sytuacja. Udział dyskowy przeniesiony na inny serwer. Z kronikarskiego obowiązku: z IFS (NetServer) działającego pod kontrolą systemu IBM i na Windows Server 2012 (choć podobny błąd widziałem przy okazji kombinowaniu z nazwą użytkownika w obrębie jednego systemu).

Podczas próby zamapowania tego dysku w nowej lokalizacji otrzymuję komunikat jak na obrazku: Continue reading Windows i błąd mapowania zasobu