Skip to main content

19 posts tagged with "AWS"

Amazon Web Services (AWS)

View All Tags

How 170 MB cost me $350 in 813 million S3 requests

· 16 min read
Ivan Barlog
AWS Solutions Architect @ BeeSolve

I had wanted to see the analytics for this blog for quite some time. Turning on CloudFront access logs from the very start was a conscious decision: I wanted analytics, but I did not want to reach for Google Analytics - too much CSP complexity, the privacy concerns, the cookie policy, all of it. Logging to my own S3 bucket sidesteps every one of those, and I knew I would one day build something around the data. In practice that "something" was me running an ad-hoc Athena query from time to time to see how many hits /blog/* got in a given month - which works, but is not exactly user friendly. I had already built two dashboards (one for DMARC reports and one for email delivery), so I figured a third would be no trouble.

Adding it meant backfilling about a year of CloudFront access logs. The whole dataset is around 170 MB. Backfilling it cost me roughly $350. Done right it would have cost about $3. The data was tiny, the mistake was tiny, and the bill was not - and the reason is a single architectural decision I did not think twice about.

Why your CDK deploys might be slow - tags propagate to children

· 8 min read
Ivan Barlog
AWS Solutions Architect @ BeeSolve

I noticed quite some time ago that my CDK deployments had gotten slow, and that a lot of the churn was SQS. I did not really have time to dig into it, and I half-convinced myself it was just a feeling - that it had not actually slowed down. Eventually it nagged at me enough that I sat down with an LLM agent to investigate. The culprit turned out to be a one-liner buried in a construct I use everywhere.

How to get additional $100 for newly created AWS account

· 10 min read
Ivan Barlog
AWS Solutions Architect @ BeeSolve

I haven't set up a new AWS account via Create Account button for ages. Currently I am setting up new AWS accounts via code with @beesolve/aws-accounts. I want the tool to be usable for users with existing AWS Organizations and also users who are trying to onboard to AWS. That's why I needed to create new Organization myself so I could understand how the tool can help the newcomers.

Config-driven AWS account management with TypeScript

· 7 min read
Ivan Barlog
AWS Solutions Architect @ BeeSolve

Managing the AWS Organization shouldn't require you to fight CloudFormation or click through Control Tower. It should be code. That's the reason I've built a tool which lets you do exactly that. The tool is called @beesolve/aws-accounts and it is publicly available. If you manage multiple accounts and you are not satisfied with existing solutions this article might be for you.

Lambda Bun runtime rewrite

· 8 min read
Ivan Barlog
AWS Solutions Architect @ BeeSolve

When I created @beesolve/lambda-bun-runtime I mostly did it because it seems that the Lambda is very low on the Bun priority list and I wanted to have something which is up to date where I can fix the bugs quickly. I also wanted to provide better DX and tooling built around the CDK.

After using it for a while I realized that the approach of the official Bun's custom layer for Lambda does not align with my mindset.