Replace boundary resource with data source in platform#83
Merged
Conversation
The boundary resource was moved to terraform/org/ in #82 and the state migration is complete (import to org state + state rm from platform). Replace the resource with a data source so CI reads the existing policy instead of trying to recreate it.
Terraform Plan✅ No changes — infrastructure is up to date. Plan output |
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary Completes the boundary migration from #82. The state migration has been done manually: 1. Imported boundary into `terraform/org/` state 2. Removed from `terraform/platform/` state via `terraform state rm` This PR replaces the resource with a `data.aws_iam_policy` data source so platform CI reads the existing boundary policy instead of trying to recreate it. All references updated: `aws_iam_policy.developer_boundary.arn` → `data.aws_iam_policy.developer_boundary.arn` ## Test plan - [ ] CI plan shows 1 resource removed (the boundary) and data source read — no destroy - [ ] All roles still reference the boundary ARN correctly - [ ] Future boundary changes go through `terraform/org/` (human-applied)
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
Completes the boundary migration from #82. The state migration has been done manually:
terraform/org/stateterraform/platform/state viaterraform state rmThis PR replaces the resource with a
data.aws_iam_policydata source so platform CI reads the existing boundary policy instead of trying to recreate it.All references updated:
aws_iam_policy.developer_boundary.arn→data.aws_iam_policy.developer_boundary.arnTest plan
terraform/org/(human-applied)