Other posts you might like

Debugging AWS Backup Error

My S3 backups, automated and on-demand, were failing with this error:

IAM Role arn:aws:iam::<role-id>:role/service-role/AWSBackupDefaultServiceRole does not have sufficient permissions to execute the backup

This happened even when using the default role, which should automatically receive the required permissions:

Eventually, I realized that the default role should receive all of the following permissions:

  • AWSBackupServiceRolePolicyForRestores
  • AWSBackupServiceRolePolicyForBackup
  • AWSBackupServiceRolePolicyForS3Backup
  • AWSBackupServiceRolePolicyForS3Restore

In my case, the last two permissions, that is AWSBackupServiceRolePolicyForS3Backup and AWSBackupServiceRolePolicyForS3Restore were, for reasons that are unknown to me, missing. I manually created these missing permissions and assigned them to a new role:

aws backupamazon web servicesprogrammings3devopsawssoftware engineering
2 comments

Feature announcement - image upload

You can now add images to your Sanity posts 📷 Important caveat: For now, you need to save your post as a draft first to be able to access this feature.

Here is a picture of a couple of boars I took outside of my house yesterday. Plenty of boars here in Gdynia, I see them almost every day 🐗

building in publicgdyniaboarswildlifeanimals
reply

Fixing AWS Timestream query

My 'ago' function had been failing with "The query syntax is invalid" error on the following clause:

time BETWEEN ago(24h5m) AND ago(24h) AND

I fixed it by changing converting the hours to minutes:

time BETWEEN ago(1445m) AND ago(1440m) AND

programmingaws timestreamsqlawsamazon web services
reply

How to use AWS Amplify Authentication with Next.js Server Actions

No next-auth required:

// amplifyServerUtils.ts

import { createServerRunner } from '@aws-amplify/adapter-nextjs';
import config from '@/amplifyconfiguration.json';

export const { runWithAmplifyServerContext } = createServerRunner({
  config
});
// actions.ts

"use server";
import { cookies } from "next/headers";
programmingawsamplifynext.jsamplify v6cognito
reply

Quick feature announcement

I updated the layout a bit to make it easier to find replies to your posts and comments. This is not backward-compatible yet, so you are only going to see the posts and replies created from now on. I'll run a database migration some time in the next few days so that older replies also appear there.

sanityfeature announcementbuilding in publicux
reply

Feature announcement 🎉

You can now tag your posts! This will make it easier for your content to be discovered, both on Sanity and in search engines - a much-needed SEO boost. You can add up to 5 tags per post and the length limit is 35 characters.

feature announcementsanitytagsseosanity tips
reply

How I fixed @aws-crypto build error

I've been getting the following error when building my Next.js app:

Failed to compile.

./node_modules/.pnpm/@aws-crypto+sha256-js@5.2.0/node_modules/@aws-crypto/sha256-js/build/module/index.js + 12 modules Cannot get final name for export 'fromUtf8' of ./node_modules/.pnpm/@smithy+util-utf8@2.0.2/node_modules/@smithy/util-utf8/dist-es/index.js

I narrowed the source down to the following piece of code:

import { createServerRunner } from "@aws-amplify/adapter-nextjs";
import { AWS_AMPLIFY_CONFIG } from "./utils";
import { cookies } from "next/headers";
import { getCurrentUser } from "aws-amplify/auth/server";

export const { runWithAmplifyServerContext } = createServerRunner({
  config: AWS_AMPLIFY_CONFIG,
});
awsnext.js@aws-cryptoamplifyprogramming
reply

Feature announcement 🥳 -> Comments

You can now comment on other posts on Sanity. And you can comment on other people's comments. It's not perfect yet and I'll be making UX improvements here and there over the coming weeks but the essentials are there.

You can leave up to 5 comments a day, so make them count!

sanityfeature announcementcommentsbuilding in publicindie makers
1 comment

Recent News from Poland: Sidewalk Accessibility, Ombudsman Nomination, Traffic Altercation

No More Parking on Sidewalks in front of the Parliament

A new policy has been implemented in front of the Polish Parliament, where parking on the sidewalk is now prohibited. Previously, parked cars on the sidewalk caused disruptions for pedestrians, including people with disabilities. The removal of barriers and parked cars has greatly improved accessibility to the parliament building. Read more

Candidate for the Ombudsman for Children's Rights

Monika Horna-Cieślak, a lawyer, activist, and social worker, has been nominated as a candidate for the position of Ombudsman for Children's Rights. She is known for co-authoring a law protecting children from violence, referred to as the "Kamilka Law." She discussed her vision for the role with representatives from the majority party in the Sejm. Read more

Attack on a Driver on Bułgarska Street

A driver was attacked on Bułgarska Street in Poznań. The incident involved an altercation between two drivers, with one of them smashing the other's car window. The police are investigating the incident, and the motive behind the aggression is believed to be a dispute over traffic. [Read more](https://tvn24.pl/poznan/poznan...

poland newspolandchildren's rightspolish parliamentpoznanmonika horna-cieślak
reply
feedback