Debug CodeBuild with custom image

AWS CodeBuild is managed service for helping continuous integration and deployment. In CodeBuild, we normally use managed container image provided Amazon, it contains almost runtimes like android, dotnet, golang and more. We’re usually satisfied the managed image, but sometimes need to use custom image you build, CodeBuild can run on it. When debugging in CodeBuild, we can log in the container running by codebuild, it’s very convenience. To use the function, we set codebuild-breakpoint in buildspec file....

June 4, 2021 · 1 min · waneal

Deregister unused instances in SSM

AWS Systems Manager can manage instances by Fleet Manager. It can cover not only aws instances, but also on-premiss instances by Hybrid Activations. For example, using Hybrid Activations and managing servers which are under control of auto-scaling function in on-premiss environment, some servers become ConnectionLost status in Fleet Manager when their servers are terminated by scale in action. At result, unused servers continue existing in Fleet Manager. To resolve that problem, I regularly clean up unused instances by below lambda function....

May 12, 2021 · 1 min · waneal