compiler-explorer/infra

Infrastructure to set up the public Compiler Explorer instances and compilers

433

stars

5,622

commits

Python

primary language

Sep 7, 2026

updated

godbolt.org
compiler-explorer
infrastructure
python
terraform

README

Compiler Explorer Infrastructure

A whole bag of scripts and AWS config to run Compiler Explorer.

Of most use to the casual observer is probably the code in bin/ce_install - a tool to install the Compiler Explorer compilers to /opt/compiler-explorer. In particular, the open source compilers can be installed by anyone by running:

$ make ce  # this installs python modules etc
$ ./bin/ce_install install compilers

This will grab all the open source compilers and put them in /opt/compiler-explorer (which must be writable by the current user). To get the beta and nightly-built latest compilers, add the parameter --enable nightly to the command.

To list installation candidates, use ./bin/ce_install list. A single installation can be installed by name.

More info can be found here

Built compilers

Status page to our daily built compilers https://compiler-explorer.github.io/compiler-workflows/build-status

Cleaning up old AMIs

Something like:

$ npx aws-amicleaner --region 'us-east-1' \
    --exclude-in-use --verbose \
    --exclude-newest=2 --exclude-days 7 \
    --include-name 'compiler-explorer*'

Deploying the admin site and associated lambda

  • If you had to change the Python lambda code:
  • make terraform-apply - will build and update the python bundle and updates the endpoints/balancer config to point at the new lambda zip
  • make update-admin - deploys the admin site HTML and CSS etc

Note that the events lambda is npm-based and doesn't work in quite the same way, see make upload-events-lambda then manually make terraform-apply after.

Contributors

(top 30 of 355)

mattgodbolt

2,295 commits

partouf

1,488 commits

AbrilRBS

268 commits

apmorton

112 commits

compiler-explorer/infra

Infrastructure to set up the public Compiler Explorer instances and compilers

433

stars

5,622

commits

Python

primary language

Sep 7, 2026

updated

godbolt.org
compiler-explorer
infrastructure
python
terraform

README

Compiler Explorer Infrastructure

A whole bag of scripts and AWS config to run Compiler Explorer.

Of most use to the casual observer is probably the code in bin/ce_install - a tool to install the Compiler Explorer compilers to /opt/compiler-explorer. In particular, the open source compilers can be installed by anyone by running:

$ make ce  # this installs python modules etc
$ ./bin/ce_install install compilers

This will grab all the open source compilers and put them in /opt/compiler-explorer (which must be writable by the current user). To get the beta and nightly-built latest compilers, add the parameter --enable nightly to the command.

To list installation candidates, use ./bin/ce_install list. A single installation can be installed by name.

More info can be found here

Built compilers

Status page to our daily built compilers https://compiler-explorer.github.io/compiler-workflows/build-status

Cleaning up old AMIs

Something like:

$ npx aws-amicleaner --region 'us-east-1' \
    --exclude-in-use --verbose \
    --exclude-newest=2 --exclude-days 7 \
    --include-name 'compiler-explorer*'

Deploying the admin site and associated lambda

  • If you had to change the Python lambda code:
  • make terraform-apply - will build and update the python bundle and updates the endpoints/balancer config to point at the new lambda zip
  • make update-admin - deploys the admin site HTML and CSS etc

Note that the events lambda is npm-based and doesn't work in quite the same way, see make upload-events-lambda then manually make terraform-apply after.

Contributors

(top 30 of 355)

mattgodbolt

2,295 commits

partouf

1,488 commits

AbrilRBS

268 commits

apmorton

112 commits

Languages

Python

72.4%

HCL

10.4%

PowerShell

6.4%

Shell

4.2%

JavaScript

2.4%

C

1.4%

HTML

1.1%

C++

1.1%