Skip to content

fix(aws/lambda): type IAM and security-group propagation errors - #879

Merged
sam-goodwin merged 1 commit into
mainfrom
fix/lambda-propagation-errors
Oct 15, 2026
Merged

sam-goodwin merged 1 commit into
mainfrom
fix/lambda-propagation-errors

Conversation

@sam-goodwin

Copy link
Copy Markdown
Collaborator

Types the IAM and security-group propagation errors Lambda returns while a just-created role or security group isn't visible yet, so consumers retry on tags instead of matching messages.

lambda.createFunction(request).pipe(
  Effect.retry({
    while: (e) =>
      e._tag === "ExecutionRoleNotAssumable" ||
      e._tag === "ExecutionRoleMissingVpcPermissions" ||
      e._tag === "KmsGrantPrincipalNotReady" ||
      e._tag === "SecurityGroupNotFound",
    schedule,
    times: 10,
  }),
);

lambdacore.createNetworkConnector(request).pipe(
  Effect.retry({ while: (e) => e._tag === "OperatorRoleNotAssumable", schedule, times: 10 }),
);
  • lambda: createFunction, updateFunctionCode, updateFunctionConfiguration get ExecutionRoleNotAssumable, ExecutionRoleMissingVpcPermissions, KmsGrantPrincipalNotReady (and SecurityGroupNotFound on create/configuration); create/updateEventSourceMapping get ExecutionRoleNotAssumable and ExecutionRoleMissingPermissions.
  • lambda-core: create/updateNetworkConnector get OperatorRoleNotAssumable.

All are synthetic errors over InvalidParameterValueException with message matchers. Regenerating lambda also picks up the pinned mirror's model updates for that service.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@alchemy-version-bot

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

@distilled.cloud

pnpm install https://pkg.distilled.cloud/@distilled.cloud/aws/pr:879:f4f2076
pnpm install https://pkg.distilled.cloud/@distilled.cloud/core/pr:879:f4f2076

Published Oct 15, 2026, 1:19 AM UTC. Expires Oct 22, 2026, 1:19 AM UTC, extended while this pull request is open.

@sam-goodwin
sam-goodwin added this pull request to the merge queue Oct 15, 2026
@sam-goodwin
sam-goodwin removed this pull request from the merge queue due to a manual request Oct 15, 2026
@sam-goodwin
sam-goodwin merged commit a65178c into main Oct 15, 2026
9 checks passed
@sam-goodwin
sam-goodwin deleted the fix/lambda-propagation-errors branch October 15, 2026 01:33
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