Home icon
Running GitHub Actions in a private Subnet with AWS CodeBuild

Blog



This article demonstrates how to run GitHub Actions in AWS CodeBuild to deploy database changes to a private Aurora instance.

  • AWS CodeBuild now supports GitHub Actions alongside traditional build commands
  • CodeBuild provides managed infrastructure without maintaining self-hosted runners
  • Example uses Liquibase GitHub Action to deploy database changelogs
  • CodeBuild can access resources in private VPC subnets via NAT Gateway
  • BuildSpec YAML supports both commands (CodeBuild) and steps (GitHub Actions)
  • Environment variables use different syntax: $NAME for CodeBuild, ${{ env.NAME }} for GitHub Actions
  • Secrets Manager and Parameter Store integration for secure credential management
  • Docker container actions require privileged mode enabled

CodeBuild combined with GitHub Actions provides managed CI/CD with access to private AWS resources and a rich marketplace of pre-built actions.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.