Point-out's infrastructure is defined with OpenTofu in
point-out/infrastructure and applied by GitHub
Actions, to one AWS account per environment. Resources live in eu-central-1, except those AWS
only accepts in us-east-1, such as CloudFront certificates.
Each component has its own page, covering its architecture and its deployment.
| Component | What it is |
|---|
| OpenTofu | the state account, the pipeline roles, the account settings and the plan/apply workflows |
| DNS | the Route 53 hosted zone of the environment's root domain |
| Docs site | this portal: a private S3 bucket behind CloudFront, and how point-out/docs publishes to it |
| lambda-ts | the ingest API and the job worker of point-out/lambda-ts: two functions, their queue and an hourly ping |
| Staging | Production |
|---|
| AWS account | 468351713122 | not created yet |
| Root domain (hosted zone) | staging2.point-out.net | point-out.net |
| Docs | docs.staging2.point-out.net | docs.point-out.net |
| Account alias | point-out-staging-v2 | point-out-production-v2 |
| Console colour | green | yellow |
| Applied on | push to staging | push to main, once enabled |
| Values | staging.tfvars | production.tfvars |
Production is disabled in the pipeline until its account exists. See
OpenTofu.
| Rule | Where |
|---|
| One AWS account per environment; the OpenTofu state and the pipeline's secrets live in a separate state account | OpenTofu |
| Pipelines use GitHub OIDC roles instead of stored AWS keys | OpenTofu, Docs site |
| Per-environment values are typed variables in the committed tfvars; secrets come from SSM at run time | OpenTofu |
| Buckets are private; CloudFront reads them through Origin Access Control | Docs site |
| The GitHub resources a deploy needs (environment, variables, deploy keys) are managed in this stack too | Docs site |
| Path | Contents |
|---|
main.tf | required providers, the aws provider (eu-central-1) and its aws.us_east_1 alias, the github provider, the account alias and console settings |
config.tf | fixed locals: project = "point-out" and the default tags |
variables.tf | environment, root_domain, docs_allowed_ips, github_app_pem_file |
staging.tfvars, production.tfvars | the non-secret per-environment values |
dns.tf | the Route 53 hosted zone and its name_servers output |
modules.tf | wires the docs-site and lambda-ts modules |
outbound-federation.tf | turns on IAM outbound identity federation for the account: the issuer of the tokens the lambda-ts API accepts |
docs-site/ | bucket, distribution, viewer-request function, certificate, alias record, deploy role, GitHub environment and deploy keys |
lambda-ts/ | the image registry and CI deploy role, the API and worker functions, the job queue, the ping schedule, the API's distribution and its client roles |
.github/workflows/ | checkov.yml, plan.yml, apply.yml, trigger-apply.yml and the reusable tofu.yml |
docs/infrastructure/, docs/aws-icons/ | this documentation and its diagram icons |