Codebuild
Codebuild
Input: Github Link or zipped file in S3
Output: Build artifacts or upload Docker image to ECR
Very versatile and simple
basically running bash commands with some sugar for uploading and downloading and sdks api for kicking off in different languages
Uses:
Kick off some scripts(async?) from APIs
Build some code from github/s3 and output it to an S3
Notes
To build Docker images, you need to allow privileged access or use the AWS Ubuntu Docker runtime which lets u use the Docker daemon for building
Automagically unzips the file if your source is a zip
Artifacts are searched for based on the base dir
buildspec.yml
Artifacts
'**/*'
represents all files recursively.my-subdirectory/*
represents all files in a subdirectory named my-subdirectory.my-subdirectory/**/*
represents all files recursively starting from a subdirectory named my-subdirectory.
Example 2 Running AWSCLI and Server Artifact
The IAM role for the codebuild needs access policy S3FullAccess
Last updated