oharu tech blog

Articles

  • Terraform import blocks take over a console-built AWS prod — console names kept, deletes refused in CI

    The test account of an AWS data layer I work on is built by Terraform, from a module written against a read-only capture of prod. The previous article covers how, and it said the same module could run against prod with "only one more tfvars file". Prod itself was still built and changed by hand in the console. I wanted prod defined by the same module, with applies I start by hand. The first read-only terraform plan against prod wanted to destroy seven resources, because the console had named…

    Read more
  • One MCP image, two Bedrock AgentCore Runtimes — SigV4 for other AWS accounts, Entra ID for users

    I run an MCP server on Amazon Bedrock AgentCore Runtime, and the first agent to use it lives in a different AWS account. When that agent's ECS task tried to connect, it could reach neither the Amazon Cognito domain that issued its token nor the AgentCore endpoint. An egress filter that blocks by destination was the likely cause. Adding two hosts to that filter would have unblocked one caller. It would not have changed the shape of the problem: Cognito's token endpoint is a public web domain…

    Read more
  • SNS alerts in Slack with Amazon Q Developer — one message, a different body per subscription protocol

    Every alert from a document translation pipeline I run on AWS arrives as an SNS email, and I wanted the error alerts in the team's Slack channel as well. Amazon Q Developer in chat applications (formerly AWS Chatbot) connects an SNS topic to Slack without code, so I tried it in my own workspace before rolling it out to production. The CloudWatch alarms arrived, and every message my own code published was silently dropped, because Amazon Q Developer accepts only its own custom-notification JSON.…

    Read more
  • Showing the uploader their Box file progress with an @mention comment — start, done, and failure

    I built a pipeline that starts whenever someone uploads a file into a Box folder, and processes that file. But every time I dropped a file in, I could not tell whether it was being processed. Whether a job succeeded or failed, the uploader got no notification and could only come back later to check whether the file was done. I wanted the pipeline to report its progress in real time, so the uploader could see how far their file had got. I did not want to build a separate UI, and I did not want…

    Read more
  • Astro buttons that lift and glint on hover in pure CSS — what I kept from glassmorphism

    I love glassmorphism components. On other sites I kept seeing cards that rise slightly under the pointer, catch a band of light sweeping across them, and light up at the edge, and I wanted the same feel on this blog's buttons and tag pills. My first worry was whether it needed JavaScript in the browser, because every page here is static HTML built ahead of time. It does not: every part of the effect is CSS the browser applies at paint time, so the pages stay exactly as static as before.…

    Read more
  • Pagefind search hung under a strict CSP — the worker reads its own header, and a 304 drops it

    I searched my own blog for "claude", and the search box sat on "Searching for claude…" with no results and no error. It had been that way since I added a Content-Security-Policy (CSP) to the site two months earlier, so every reader who tried search in that time got the same empty box. The policy's script-src had no 'wasm-unsafe-eval', so the browser refused to compile the WebAssembly that Pagefind runs in a worker. The error appeared only in the DevTools console, and the search waited for a…

    Read more
  • Colour swatches beside inline hex codes in Astro — why a rehype plugin beat a Swatch component

    I was rereading my logo article, where one paragraph argues that the site accent #1d4ed8 and the seal colour #d8452a clash, and realised it asks the reader to compare two colours they cannot see. VS Code handles the same problem in CSS and similar files by drawing a small square of the colour in front of every hex literal. I did the same on this blog with a rehype plugin. Every hex code in every existing article, in all three languages, now has a swatch in front of it, so a reader sees at a…

    Read more
Load more