Repository navigation
scripts: CI deploy role for code-only Lambda deploys (#1445) - #1449
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Oct 30, 2026
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.
Refs #1445. This is the role half only; the deploy workflow comes in a follow-up PR.
What
scripts/setup-lambda-deploy-ci-role.shcreates or updatesGitHubActions-spawn-lambda-deployin 966362334030.--deleteis its named deleter.Trust: the account's existing GitHub OIDC provider.
aud=sts.amazonaws.com,sub=repo:spore-host/spawn:environment:production(StringEquals, no wildcard). Max session 1h.Policy (
DeployOperatedLambdaCode):UpdateFunctionCode,GetFunction,GetFunctionConfiguration,ListTagson the 9 operated functions by exact ARN;TagResourceon the same functions, limited byaws:TagKeystospawn:version/managed/component/created-by.Nothing else: no IAM, no
UpdateFunctionConfiguration, no mappings, no CloudFormation, no other account.The
productionenvironment was created first, already protected:can_admins_bypass: false;v*tags only.The repo uses the default OIDC subject format (checked through the API), so the
subabove is what such a job presents.Gate
TestCIDeployRoleCoversTheOperatedFunctions(scripts/deploychecklist) keeps the script'sFUNCTIONSequal to the operated functionsdiscover()finds. I watched it fail when an extra function was added to the array.make deploy-checklist FROM=v0.151.0 TO=<this branch>lists the script as an added manual input.Checks
make checkandmake lint(0 issues, 10 modules): passDeploy
After merge, from main:
simulate-custom-policyof the generated policy, allow and deny;simulate-principal-policyon the live role.The record goes on #1445.