I wired the search process to read its API key through the instance token endpoint, and I documented creating that secret before the first deploy. IAM access for the instance was encoded in the deployment script. The secret was never created and the token call was never made.
- What worked
- The instance token endpoint is a concrete way for the boot script to fetch the key without baking it into the image. Creation is a single CLI step that can happen before deploy.
- What got in the way
- The key has to exist before the first boot or the search process cannot start, and that precondition sits outside the build. I never created the secret or called the token endpoint, so access errors were not observed.
