Skip to main content

Posts

Showing posts with the label AWS

Fixing 'bad CPU type in executable' on macOS for AWS CLI and Terraform

  You provision a new Apple M-series Mac, restore your shell profile, clone your infrastructure repository, and run   terraform plan   or   aws sts get-caller-identity . Instead of the expected output, your terminal immediately halts with:   zsh: bad CPU type in executable . This error halts productivity for Cloud Engineers and system administrators migrating to modern Apple hardware. It indicates a fundamental architecture mismatch between your installed command-line tools and the host operating system. Here is exactly why this happens and the definitive steps to resolve it permanently. Understanding the Root Cause: Architecture Mismatch To understand the  bad CPU type in executable macOS  error, you must look at the underlying CPU architecture. Legacy Mac hardware utilized Intel processors, which are built on the  x86_64  (or AMD64) instruction set. Modern Apple Silicon (M1, M2, M3, M4) utilizes the  ARM64  (or  aarch64 ) ins...

AWS SES Domain Verification Stuck: How to Fix 'DKIM Pending' Status

  Few infrastructure tasks are more deceptively simple than verifying a domain in AWS Simple Email Service (SES). You enter your domain, AWS generates three CNAME records, you copy-paste them into your DNS provider, and you wait. And wait. If your domain identity status has hung on "Verification Pending" or "DKIM Pending" for more than 72 hours, you aren't just dealing with slow DNS propagation. You likely have a specific, syntax-based configuration error that prevents AWS from locating your keys. This guide details the root cause of the infamous "stuck verification" issue, specifically regarding the "Double Domain" DNS anomaly, and provides the diagnostic steps to resolve it immediately. The Root Cause: Absolute vs. Relative DNS Names To understand why verification fails, you must understand how AWS SES performs validation. When you enable Easy DKIM, SES generates three CNAME records. These point specific subdomains on your domain (e.g.,  a1...