Repository navigation
feat(eks): read the VPC outputs with stackorder_outputs - #1
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stacks/prod/eks takes the VPC id and subnets from the outputs of stacks/prod/vpc through the stackorder/stackorder provider instead of hard-coded variable defaults. The data source, not the ephemeral resource, because the values feed terraform_data inputs in modules/eks. Its .stackorder.yaml only declared depends_on stacks/prod/vpc. Stackorder 0.4.0 infers a reads_state edge from the literal stack of the stackorder_outputs block, so the file goes and the order still holds. The prod run of the modules/vpc tests no longer guards the EKS defaults, so it now only pins that the ids are stable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terraform records stackorder/stackorder under registry.terraform.io and OpenTofu under registry.opentofu.org. Each tool drops the other's entry when it initialises, so one committed lock file churns between them and fails init -lockfile=readonly for the tool that did not write it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe the stackorder_outputs edge in the graph, the edge table and the modules/vpc scenario, list stackorder v0.4.0 and the provider v0.1.0 as tested, say why no lock file is committed, and name what a plan of stacks/prod/eks needs: a server with STACKORDER_STATE_BUCKETS and an apply or drift job of stacks/prod/vpc on CLI 0.4.0 or later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Outside a Stackorder job nothing sets STACKORDER_REPOSITORY, and the provider refuses an unprefixed stack without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stacks/prod/eks now reads the prod ids from the VPC outputs, so only stacks/staging/apps still hard-codes one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 12, 2026
Merged
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
stacks/prod/eksnow reads the VPC id and subnets fromstacks/prod/vpcwith thestackorder_outputsdata source of the publishedstackorder/stackorderprovider (0.1.0), instead of hard-coded variable defaults. Its role no longer needs any access to the VPC stack's state.stacks/prod/vpc/.stackorder.yamlopts in:outputs.readers: [stacks/prod/eks], sensitive outputs withheld (the default).stacks/prod/eksdrops itsvpc_idandsubnet_idsvariables and its.stackorder.yaml. Stackorder 0.4.0 infers thereads_stateedge from thestackorder_outputsblock (metasource: stackorder_outputs), so the order and waves are unchanged;depends_onis still shown bystacks/staging/appsandinfra/registry..terraform.lock.hclis ignored. Terraform and OpenTofu resolve the provider against different registries and each rewrites the other's lock entry, so one committed file breaks-lockfile=readonlyfor one tool.STACKORDER_STATE_BUCKETSgrantingstackorder-example-state, and an apply or drift job of the VPC stack on CLI 0.4.0+ so the server knows where its state is.Verification
terraform fmt -check -recursive,make validateandmake validate TF=tofu: each tool installsstackorder/stackorder v0.1.0from its own registry, signed with keyAD4D71AAF02E647A.make testwith both tools.stackorder graphandstackorder affected(CLI v0.4.0) for every README scenario: the EKS stack's reason changes fromdependenttoreads_state; affected sets and waves are unchanged.test/e2e-eks-reads-vpc-outputs).Merge order
stackorder's e2e workflow clones this repository's
mainon every push to itsmainand nightly. Merge this together with the stackorder pull request that adapts the e2e story, or that suite fails until it lands.🤖 Generated with Claude Code
Summary by CodeRabbit