docs/current_docs/getting-started/ci-integrations/aws-codebuild.mdx
Dagger provides a programmable container engine that allows you to migrate most of your AWS CodeBuild specification into Dagger Functions. This allows you to execute your pipeline the same locally and in AWS CodeBuild, with the additional benefits of intelligent caching and portability.
When running a CI pipeline with Dagger using AWS CodeBuild, the general workflow looks like this:
buildspec.yml file.dagger call ....DAGGER_CLOUD_TOKEN environment variable is set.The following example demonstrates how to call a Dagger Function in an AWS CodeBuild project.
The following is a more complex example demonstrating an AWS CodeBuild project that checks out source code, calls a Dagger Function to test the project, and then calls another Dagger Function to build and publish a container image of the project. This example uses a simple Go application and assumes that you have already forked it in the repository connected to the AWS CodeBuild project.
If you have any questions about additional ways to use AWS CodeBuild with Dagger, join our Discord and ask your questions in our AWS channel.
AWS CodeBuild is a managed service to test, build and deploy applications in public or private repositories.