/aws-baseimage

Our custom AMI used as a base for all customers.

Primary LanguageHCL

AWS-Baseimage

This repository contains the Chef cookbooks and the Packer configuration to generate the AWS AMI, which we use at codemonauts to start our EC2 instances.

If you find some problems or errors in this repositoy feel free to open an issue or directly fix it with an pull request if you want to.

Content

As a basis we choose the latest Ubuntu LTS from the official AWS AMI store. On top of this we did the following for the base images:

  • Deactivate the default 'ubuntu' user
  • Create our own 'codemonauts' user with our current SSH public key
  • Activate daily unattended-updates for security patches
  • Install the AWS Codedeploy agent
  • Activate systemd-timesyncd to get a correct clock
  • Install some basic CLI tools

Additionaly on top for the web images:

  • Install Nginx and add our config snippets
  • Install PHP-FPM and some PHP Modules which are used by CraftCMS

Images build by this repo

All images are public and available in eu-central-1 and eu-west-1. The XXX in the AMI name is the timestamp during build in the format YYYY-MM-DD-hhmm

arm64

  • Ubuntu Focal, Base (codemonauts-arm-base-focal_XXX)
  • Ubuntu Focal, Web with PHP 8.0 (codemonauts-arm-web-focal-php80_XXX)

amd64

  • Ubuntu Focal, Base (codemonauts-base-focal_XXX)
  • Ubuntu Focal, Web with PHP 7.4 (codemonauts-web-focal-php74_XXX)
  • Ubuntu Focal, Web with PHP 7.0 (codemonauts-web-focal-php70_XXX)