Skip to content

Move CloudTrail to org/, add CI concurrency, auto-format#9

Merged
Alexanderamiri merged 2 commits into
mainfrom
fix/cloudtrail-and-ci-concurrency
Mar 8, 2026
Merged

Move CloudTrail to org/, add CI concurrency, auto-format#9
Alexanderamiri merged 2 commits into
mainfrom
fix/cloudtrail-and-ci-concurrency

Conversation

@Alexanderamiri
Copy link
Copy Markdown
Member

Summary

  • CloudTrail moved to terraform/org/ — permission boundary blocks CI from managing it, applied manually alongside Identity Center
  • CI concurrency group — prevents state lock races on parallel pushes
  • Lock timeout 5m — waits instead of failing on lock contention
  • terraform fmt replaces fmt -check — auto-formats instead of failing
  • Removed CloudTrail from terraform/platform/monitoring/ (was added in Add CloudTrail and CI concurrency/lock-timeout #8 but CI can't apply it)

CloudTrail is already applied and logging.

Prevents state lock race when multiple pushes trigger CI simultaneously.
Concurrency group queues runs; lock-timeout=5m waits instead of failing.
CloudTrail is required for EventBridge rules matching "AWS API Call via
CloudTrail" to fire. Without it, resource creation, IAM change, and
compliance alerts never trigger.

Also adds concurrency group and lock-timeout=5m to platform-ci.yml to
prevent state lock races when multiple pushes trigger CI simultaneously.
@Alexanderamiri Alexanderamiri merged commit 5db7de2 into main Mar 8, 2026
@Alexanderamiri Alexanderamiri deleted the fix/cloudtrail-and-ci-concurrency branch March 8, 2026 11:48
Alexanderamiri added a commit that referenced this pull request May 9, 2026
## Summary
- **CloudTrail moved to `terraform/org/`** — permission boundary blocks
CI from managing it, applied manually alongside Identity Center
- **CI concurrency group** — prevents state lock races on parallel
pushes
- **Lock timeout 5m** — waits instead of failing on lock contention
- **`terraform fmt` replaces `fmt -check`** — auto-formats instead of
failing
- Removed CloudTrail from `terraform/platform/monitoring/` (was added in
#8 but CI can't apply it)

CloudTrail is already applied and logging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant