Entries from 2025-09-01 to 1 month

Understanding one() Function in Terraform

Understanding the behavior of Terraform's one() function. Introduction Understanding the Behavior of one() Specification of one() Examples When to Use one() Conclusion References Introduction Terraform provides a one() function. Because th…

How to Output Resources with `count` in Terraform

This post explains how to output a resource in Terraform when its creation is controlled using the count parameter. Introduction Outputting Resources Controlled by count Method 1: Use the one Function Method 2: Use the try Function Conclus…

Convert WebP to PNG or JPEG Using the Command | ffmpeg

Here's a quick memo on converting webp to png/jpeg with the ffmpeg command. Introduction Convert WebP to PNG or JPEG Using ffmpeg How to Do It Try It Conclusion References Introduction Sometimes you need to convert images in WebP format to…

How to AssumeRoles with Boto3 | AWS SDK for Python

This post summarizes how to perform AssumeRole using Boto3. Introduction Assuming Roles with Boto3 Implementing the AssumeRole function Example Usage Conclusion References Introduction There are many situations where you need to AssumeRole…

Auto-Commit with a Custom Slash Command in Claude Code

This post introduces a convenient way to automate git commit using a custom slash command in Claude Code. Introduction Auto-Commit with a Custom Slash Command in Claude Code How to Do It Example Conclusion References Introduction Writing a…

How to Create Custom Slash Commands in Claude Code

This post is a quick memo on how to create custom slash commands in Claude Code. Introduction What Are Custom Slash Commands in Claude Code? How to Create Custom Slash Commands Basic Syntax and Example Commands Prompt Only Arguments Runnin…

How to Delete All Chats in Claude

This is a quick memo on how to bulk delete all your chat history in Claude. Introduction How to Bulk Delete All Chats in Claude Steps Example Conclusion References Introduction Lately, I've been using Claude more often than ChatGPT. I coul…

Getting Exit Status from Piped Process in Linux Shell

This post summarizes how to get the exit status from commands in a pipeline. Introduction How to Get Exit Statuses from a Pipeline Using PIPESTATUS Using set -o pipefail Conclusion References Introduction When you try to get the exit statu…

Deploying Terraform Backend (S3/DynamoDB) with CloudFormation

This post explains the CloudFormation template that sets up the backend (S3/DynamoDB) to store Terraform state. Introduction CloudFormation Template to Provision Terraform Backend Conclusion References Introduction How to provision the bac…

Output DEBUG-Level Logs from AWS CLI: A Quick Guide

This is a quick note on how to output DEBUG-level logs using the AWS CLI. Introduction Outputting DEBUG-Level Logs with AWS CLI How to do it Example Execution Conclusion References Introduction There are times when you want to run AWS CLI …

How to List All Available AWS Services with CLI

This is a quick memo on how to retrieve all AWS service names (subcommands) provided via AWS CLI. Introduction How to List All Available Services in AWS CLI Method Example Conclusion References Introduction Sometimes you might want to list…

Fixing 'aws help' Output That Won’t Work with 'grep'

How to fix the issue where searching with grep the output of aws help doesn't work as expected? Introduction Why You Can't Grep AWS CLI Help Output Cause Solution Example Conclusion References Introduction When you try to grep or use sed o…