CodeBuild
Projects and builds. Metadata-only by default; set MINISTACK_CODEBUILD_EXECUTE=1 to run builds through the official AWS CodeBuild local agent.
Quick start
import boto3
cb = boto3.client("codebuild", endpoint_url="http://localhost:4566",
region_name="us-east-1",
aws_access_key_id="test", aws_secret_access_key="test")
cb.create_project(name="demo",
source={"type":"NO_SOURCE"},
artifacts={"type":"NO_ARTIFACTS"},
environment={"type":"LINUX_CONTAINER",
"image":"aws/codebuild/amazonlinux2-x86_64-standard:5.0",
"computeType":"BUILD_GENERAL1_SMALL"},
serviceRole="arn:aws:iam::000000000000:role/r")
Supported operations
11 operations exposed by this service as of MiniStack 1.4.21. Extracted directly from the handler dispatch in the source module.
BatchDeleteBuilds
BatchGetBuilds
BatchGetProjects
CreateProject
DeleteProject
ListBuilds
ListBuildsForProject
ListProjects
StartBuild
StopBuild
UpdateProject
CloudFormation
The CloudFormation engine provisions these resource types via this service:
AWS::CodeBuild::Project
See CloudFormation engine for intrinsic support and lifecycle details.
Known limitations
- Builds are metadata-only by default (StartBuild returns a SUCCEEDED record). Set MINISTACK_CODEBUILD_EXECUTE=1 to run the build through the official AWS CodeBuild local agent in Docker; phases run and the exit code drives SUCCEEDED/FAILED/TIMED_OUT.
Source
ministack/services/codebuild.py
Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.