AWS CodeBuild now supports accessing Build Environments with AWS Session Manager

Posted on: Jul 21, 2020

AWS CodeBuild now supports accessing your build environments with AWS Session Manager so you can investigate and diagnose build issues. With support for AWS Session Manager, you can access your Linux build environments through an interactive one-click browser-based shell or through the AWS CLI.

Session Manager provides secure, controlled, and auditable access without the need to open inbound ports, maintain bastion hosts, or manage SSH keys. Using the CodeBuild console, you can create one or more sessions for each build execution. In each session, you will have full access to the container hosting your build so you can troubleshoot without needing to update our build scripts.

You can get started by opening a CodeBuild project in the console, starting a new build, and enabling session connections in the build configuration. After the build starts, view the build run and open the Session Manager tab to start a new session or manage existing ones. Integration with Session Manager is available in all AWS Regions supported by CodeBuild.

To learn more about creating Session Manager sessions from CodeBuild, visit our documentation. To learn more about how to get started with CodeBuild, visit the product page or the CodeBuild console.

June, 16, 2023: This post originally stated that AWS Sessions Manager integration was also supported for Windows - please note that it is only supported for Linux environments in CodeBuild.