Repository navigation
fix(bootstrap_ec2): pass the instance profile into the build container - #42
Open
charlielye wants to merge 1 commit into
Open
charlielye wants to merge 1 commit into
charlielye wants to merge 1 commit into
Conversation
An instance that launches another from inside its build, such as a build instance starting its bench box, chose the new instance's profile and Group tag from CI3_INSTANCE_PROFILE_NAME. That wasn't passed into the container, so it fell back to ci3-build-instance-profile: a private build would have launched its bench box on the public profile, cache and group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
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.
A build can launch another instance from inside its container. aztec-packages' build instances do this to run their benches on a dedicated box (
./ci.sh bench). The new instance's profile, and theGrouptag it gets, come fromCI3_INSTANCE_PROFILE_NAME.That variable wasn't passed into the container, so a nested launch always fell back to
ci3-build-instance-profile. A private build would therefore have started its bench box on the public profile, cache and instance group. Its role can't do that, so the launch would fail. That's one reason the private mirror benches on the build instance instead.This passes the variable through, next to
CI3_CACHE_BUCKET, which ci3 already derives from it. When the variable is unset, behaviour is unchanged: the default still applies.This is one of two changes that let private build instances launch their own bench box. The other is the IAM grants in aztec-labs-eng/iac.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L