Fix apply: permission boundary on new Lambda roles, defer cost tags#78
Merged
Conversation
…t tags - budget-enforcer and resource-tagger roles missing permissions_boundary (required by self-replicating boundary on ci-infra role) - Cost allocation tags: only activate tags already in billing (team, service, environment, managed-by). Defer repo/created-by/commit to next apply after resources with those tags exist.
Terraform Plan🚧 Changes detected — Plan: 12 to add, 0 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟢 LOW Adding two new Lambda functions (budget_enforcer and resource_tagger) with associated IAM roles, policies, and event integrations for cost management and resource tagging automation.
|
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
) ## Summary Fixes apply failure from #77. - **Permission boundary**: `budget-enforcer` and `resource-tagger` IAM roles were missing `permissions_boundary`. The self-replicating boundary on `ci-infra` blocks role creation without it. - **Cost allocation tags**: `repo`, `created-by`, `commit` tags don't exist on any billed resource yet — AWS rejects activation. Defer to phase 2/3 (activate after resources with those tags exist). ## Test plan - [ ] `terraform plan` shows 2 role modifications (add boundary) + 3 tag removals - [ ] Apply succeeds
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
Fixes apply failure from #77.
budget-enforcerandresource-taggerIAM roles were missingpermissions_boundary. The self-replicating boundary onci-infrablocks role creation without it.repo,created-by,committags don't exist on any billed resource yet — AWS rejects activation. Defer to phase 2/3 (activate after resources with those tags exist).Test plan
terraform planshows 2 role modifications (add boundary) + 3 tag removals