Skip to content

About

Index of hello-gallaxy example repos demonstrating IaC best practices with ironskillet compliance

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

hello-gallaxy

A collection of nine example repositories demonstrating different IaC tools, runtime architectures, and application patterns -- all integrated with the ironskillet compliance system.

Each repo is a self-contained, deployable service that follows ironskillet's tagging and registration conventions. Together they cover Terraform, CloudFormation, Pulumi, Ansible, serverless, containers, and edge-portable patterns.

Repos

Repo IaC Runtime Description
spin-min Terraform EC2 + Flask + wasmtime Mandelbrot fractal explorer (Wasm compute)
spin-full Terraform EC2 + Flask + wasmtime Wasm benchmark lab (4 kernels)
juno Terraform EC2 + Flask + SQLite + wasmtime Notebook with Wasm text processing
magic-8ball Terraform API Gateway + Lambda Magic 8-Ball oracle API
dad-jokes CloudFormation API Gateway + Lambda Daily dad joke service
color-palette Pulumi API Gateway + Lambda Random color palette generator
mesh-dash Terraform + Ansible EC2 + Node.js + React + PgSQL Network mesh monitoring dashboard
field-report Terraform + Ansible EC2 + FastAPI + PgSQL Field incident reporting API
asset-ledger Terraform + Ansible EC2 + .NET 8 + Vue.js + PgSQL Asset tracking with audit log

Architecture Groups

Edge-Native Wasm (spin-min, spin-full, juno)

ARM64 EC2 instances running Flask + wasmtime. Hand-written WAT modules handle compute workloads. Can run fully disconnected on a Raspberry Pi.

Serverless APIs (magic-8ball, dad-jokes, color-palette)

API Gateway + Lambda + DynamoDB. Three different IaC tools (Terraform, CloudFormation, Pulumi) deploying the same serverless pattern.

Edge-Portable Services (mesh-dash, field-report, asset-ledger)

Terraform creates AWS infrastructure; Ansible configures the host. The same playbook deploys to EC2 or bare-metal ARM64 devices. PostgreSQL 16 on each instance. Three different languages (Node.js, Python, C#).

Deployment Patterns

All nine repos follow a standardized credential management and deployment strategy that mirrors the ironskillet-infra conventions. Every repo can be deployed with two commands:

direnv allow        # One-time: loads AWS credentials, region, project defaults
./scripts/deploy    # Handles aws-vault, IaC, and verification automatically

Credential Flow

Every repo includes a .envrc that configures the shell environment via direnv:

Variable Value Purpose
AWS_VAULT_KEYCHAIN_NAME login Routes aws-vault to the macOS login keychain
AWS_DEFAULT_REGION eu-central-1 Default region for all AWS operations
AWS_REGION eu-central-1 Explicit region (some SDKs check this instead)
PROJECT ironskillet Project name used in resource naming
ENVIRONMENT dev Environment name

The .envrc also adds ./scripts to PATH and sources .envrc.local (gitignored) for local overrides.

All AWS operations run through aws-vault exec ironskillet --no-session --, which injects short-lived STS credentials without touching ~/.aws/credentials. The deploy scripts handle this wrapping automatically.

Deploy Scripts by Architecture Group

Each repo includes a scripts/deploy script tailored to its deployment pattern:

EC2 + Terraform + Ansible (mesh-dash, field-report, asset-ledger):

./scripts/deploy                  # Full: Terraform + Ansible + health check
./scripts/deploy terraform        # Terraform only
./scripts/deploy ansible          # Ansible only (host must exist)
./scripts/deploy ansible deploy   # Ansible deploy tag only (fast redeploy)

The script resolves Terraform outputs (IP, SSH key secret), retrieves the SSH key from Secrets Manager on first run, exports the required environment variables, and runs ansible-playbook with proper credentials.

Serverless -- Terraform (magic-8ball):

./scripts/deploy                  # init + apply + verify
./scripts/deploy plan             # Preview changes
./scripts/deploy destroy          # Tear down

Serverless -- CloudFormation (dad-jokes):

./scripts/deploy                  # package + upload + deploy + register
./scripts/deploy package          # Package Lambda only
./scripts/deploy status           # Check stack status

Serverless -- Pulumi (color-palette):

./scripts/deploy                  # pulumi up
./scripts/deploy preview          # Preview changes
./scripts/deploy destroy          # Tear down

EC2 + Terraform only (spin-min, spin-full, juno):

./scripts/deploy                  # init + apply + verify
./scripts/deploy plan             # Preview changes
./scripts/deploy destroy          # Tear down

Secrets Management

The three edge-portable services (mesh-dash, field-report, asset-ledger) fetch application secrets from OpenBao at deploy time via the AppRole authentication pattern:

  1. Each service has a scoped AppRole in OpenBao (read-only access to secret/data/<service>/*)
  2. AppRole bootstrap credentials (role_id + secret_id) are stored in AWS Secrets Manager
  3. During CI or manual deploy, Ansible authenticates to OpenBao and reads the secrets
  4. Secrets are injected into the host configuration (database passwords, JWT keys, session secrets)

The serverless and Wasm repos have no runtime secrets -- they are stateless or use DynamoDB/S3 directly.

Compliance Integration

Every repo integrates with the ironskillet compliance system through:

  1. Tagging -- 5 required tags on all resources (Project, Environment, ManagedBy, Repository, Lifecycle) via the compliance-tags module
  2. Registration -- SSM parameter at /{project}/{environment}/iac-registry/{repo-slug} via the iac-registry module

The compliance scanner automatically discovers registered repos, reads their IaC state, and verifies all resources are tagged and managed.

Using a Repo as a Template

  1. Fork any repo as a starting point
  2. Update backend.tf (or equivalent) with a new state key
  3. Set service_name and repository_url to your values
  4. Replace the application code

See the Multi-Repo Compliance Guide for detailed onboarding instructions.

Future

This registry will eventually become an automated live index that discovers hello-gallaxy repos dynamically. For now it's a manually maintained reference.


Note: These repos are planned to be renamed with a hello-gallaxy- prefix (e.g., hello-gallaxy-spin-min) to make the collection more discoverable. Links above use current names and will auto-redirect after the rename.

About

Index of hello-gallaxy example repos demonstrating IaC best practices with ironskillet compliance

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors