Posts

Showing posts from September, 2025

Building an AWS C++ S3 Program on Windows with vcpk

Building an AWS C++ S3 Program on Windows with vcpkg This guide shows how to set up a working C++ project on Windows that uses the AWS SDK to list S3 buckets. We will use vcpkg as the package manager to handle the AWS SDK installation and dependencies. Step 1: Install vcpkg If you haven't installed vcpkg yet, download it from the official repository and bootstrap it: git clone https://github.com/microsoft/vcpkg.git C:\Users\YourName\CDK\vcpkg cd C:\Users\YourName\CDK\vcpkg .\bootstrap-vcpkg.bat Note: On Windows, you must run bootstrap-vcpkg.bat in the Command Prompt. --- Step 2: Install the AWS SDK for C++ using vcpkg Install the core and S3 components for 64-bit Windows: vcpkg install aws-sdk-cpp[core,s3]:x64-windows This will install the required libraries and headers under installed\x64-windows\ . vcpkg will handle dependencies like aws-c-common , aws-crt-cpp , and others. --- Step 3: Set up your C++ project Create a project folder, e.g., C:\...

Automating .NET ECS Deployment with Boto3 and EventBridge

Deploying containerized applications on AWS ECS can be a tedious, multi-step process. Between setting up IAM roles, creating repositories, configuring clusters, and scheduling tasks, there’s a lot of moving parts. To streamline this, I built a Python deployment script using Boto3 that automates the entire process from Docker build to scheduled execution with Amazon EventBridge . Overview of the Workflow The script covers the following: Ensures IAM roles exist with the right policies Creates or resets an Amazon ECR repository Builds and pushes a Docker image Creates a CloudWatch Logs group for container logging Creates an ECS cluster (if missing) Registers a new ECS Fargate task definition Deregisters old task definitions Stops old running ECS tasks Creates or updates an EventBridge schedule to trigger ECS tasks IAM Roles and Permissions The first step in ECS deployments is to make ...