Move CloudTrail to org/, add CI concurrency, auto-format#9
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
terraform/org/— permission boundary blocks CI from managing it, applied manually alongside Identity Centerterraform fmtreplacesfmt -check— auto-formats instead of failingterraform/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.