Skip to content

AppConfigDeploymentEventSource

Source: src/AWS/Lambda/AppConfigDeploymentEventSource.ts

Lambda runtime implementation for AWS.AppConfig.consumeDeploymentEvents(...).

This layer does two things:

  1. At deploy time it provisions an AppConfig Extension whose actions invoke the current Lambda function at the subscribed deployment action points, the IAM role AppConfig assumes to perform the invocation, and an ExtensionAssociation attaching the extension to the target application or environment.
  2. At runtime it narrows incoming invocations to AppConfig deployment notifications for the bound target and forwards them into the supplied handler as a typed DeploymentEventRecord stream.
yield* AppConfig.consumeDeploymentEvents(
env,
{ events: ["ON_DEPLOYMENT_COMPLETE"] },
(events) =>
events.pipe(
Stream.runForEach((event) =>
Effect.log(`deployment ${event.DeploymentNumber} completed`),
),
),
);