TL;DR GitBucketはGitHub API互換なので、GitHub Enterpriseとして振る舞うことができる。 AWS CodeBuildはGitHub Enterpriseに対応している。 CodeBuildからGitBucketにgit cloneしてビルドを実行できる。 今のところWebhookは使えない。 Getting Started GitBucket GitBucketには https://git.example.com でアクセスできるものとします。IPアドレス制限がある場合は後述するVPC設定が必要になります。 GitBucketに適当なリポジトリを作成します。ここでは https://git.example.com/hello/sandbox とします。リポジトリを作成したら、以下の内容で buildspec.yml を作成します。 version: 0
![AWS CodeBuildとGitBucketの連携 - GeekFactory](https://cdn-ak-scissors.b.st-hatena.com/image/square/38d7462dd728ba7db8318121a9d6f84e119f08db/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fi%2Fint128%2F20180412%2F20180412185758.png)