Skip to content

fix(bootstrap_ec2): pass the instance profile into the build container - #42

Open
charlielye wants to merge 1 commit into
mainfrom
cl/pass-instance-profile
Open

charlielye wants to merge 1 commit into
mainfrom
cl/pass-instance-profile

Conversation

@charlielye

Copy link
Copy Markdown
Contributor

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 the Group tag it gets, come from CI3_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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant