Add ack-resource-adoption-from-iac custom transformation#74
Open
brunokktro wants to merge 2 commits into
Open
Conversation
added 2 commits
July 24, 2026 13:41
Generates ACK adoption manifests (adopt-or-create + deletion-policy retain) from CloudFormation, Terraform, and Pulumi code, translating IaC modules and nested stacks into kro ResourceGraphDefinitions. Includes BENCHMARKS.md with end-to-end test results, Troubleshooting, and full reference set.
…ation, Pulumi) Two additional end-to-end runs via atx custom def exec: - CloudFormation: nested stack -> kro RGD with CEL wiring, VPC discovery TODO, conservative flag on an unmapped type (never guessed) - Pulumi (Python): ComponentResource -> kro RGD, per-instance override (maxReceiveCount: 3) captured correctly 14/14 annotation audit across all runs, zero IaC syntax remnants, sources byte-identical. Also adds AWS::SNS::Subscription to the mapping table (gap surfaced by the CFN benchmark).
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
Adds a new community-sourced custom transformation for AWS Transform: ACK Resource Adoption from IaC.
Analyzes CloudFormation, Terraform, and Pulumi code and generates ACK (AWS Controllers for Kubernetes) adoption manifests that bring existing AWS resources under Kubernetes/GitOps management without recreating, modifying, or deleting anything - using the
ResourceAdoptionfeature gate withadopt-or-createpolicy anddeletion-policy: retainon every manifest. IaC modules and CloudFormation nested stacks are translated into kroResourceGraphDefinitions, preserving reusable composition as Kubernetes-native APIs.What's included
Testing
Validated end-to-end via
atx custom def execagainst a mixed Terraform test repository (flat resources + reusable module + unsupported type). Results inBENCHMARKS.md:adopt-or-create+deletion-policy: retain(programmatic annotation audit, including templates inside the RGD)aws_iam_role_policy_attachmentcorrectly folded into the Role specADOPTION_REPORT.mdwith guidance, never guessedNotes for reviewers
This submission already follows the review guidance from PR #72 (eks-version-upgrade-readiness): no internal links,
BENCHMARKS.mdwith real execution results, a Troubleshooting section, and a Repository Structure tree in the README.