Commit graph

6 commits

Author SHA1 Message Date
Adam Moussa
dd61d34cd7
fix(infra): allow scoped apply to create the EC2 recover alarm (PLAT-78) (#40)
* fix(infra): allow scoped apply to create the EC2 recover alarm

PutMetricAlarm with the automate recover action needs RecoverInstances plus CreateServiceLinkedRole for AWSServiceRoleForCloudWatchEvents, which does not exist in seahaven-prod yet.

* docs: record prod EIP and bootstrap-then-scoped apply split

Bootstrap cannot CreateVpc; the live collector is 184.193.220.187 until UniFi is re-pointed.
2026-09-16 21:48:35 +00:00
Adam Moussa
e17b284370
feat(infra): migrate syslog-server to HCP Terraform (PLAT-78) (#38)
* feat(infra): migrate syslog-server to HCP Terraform

Replace the mgmt CDK stack with a seahaven-prod HCP workspace so the
collector is owned by Terraform before UniFi cutover.

* fix(infra): keep no-logs alarm quiet until UniFi cutover

The new prod unifi-syslog group is empty until devices are re-pointed, so treat_missing_data=breaching would page site-alerts on first apply.

* fix(infra): allow scoped apply to modify SG rules in place

Authorize/Revoke plus description updates are not enough for aws_vpc_security_group_*_rule in-place changes after the bootstrap window.
2026-09-16 21:29:43 +00:00
Adam Moussa
a4ef862d65
Document CDK app layout in README (#12)
Some checks failed
Deploy / deploy (push) Has been cancelled
The README covered the deployed AWS resources but never described the
CDK app itself — the cdk.json manifest, the bin/lib entry points, and
the committed context cache. Add a "CDK app" section so the
infrastructure-as-code component is documented alongside the resources
it provisions.

Refs: INFRA-12
2026-07-10 16:07:36 -04:00
Adam Moussa
5f19dfb054
docs: link Confluence AWS Architecture Map (INFRA-53) (#5)
Some checks are pending
Deploy / deploy (push) Waiting to run
2026-07-06 17:44:28 -04:00
Adam Moussa
fbb627027f
Repo hygiene: PR labeler + README badges (INFRA-56/57) (#3)
Some checks failed
Deploy / deploy (push) Has been cancelled
- Add Labeler workflow calling org reusable callable-labeler.yaml
- Add README status badges (TypeScript, AWS CDK, CI)

Part of INFRA-47 (INFRA-56, INFRA-57).
2026-06-11 14:13:59 -04:00
a8276b44fd feat: syslog-server under IaC (INFRA-12)
CDK stack for the EC2 syslog collector (rsyslog 514 -> CloudWatch agent ->
unifi-syslog), mirroring the file-share/forgejo pattern. Recreated from the
captured console config; EIP 184.72.154.32 imported + re-associated so the
UniFi forwarding target is unchanged. Deployed + verified 2026-06-09.

Note: deploy role can assume cdk-hnb659fds-* (account-admin via CDK
bootstrap) — same exposure as every org CDK deploy role; per-app qualifier
is a known org-wide follow-up.
2026-06-09 13:51:17 -04:00