in cdk/lib/gu-lamba-docker-function.ts [15:39]
constructor(scope: GuStack, id: string, props: GuFunctionDockerProps) {
const defaultEnvironmentVariables = {
STACK: scope.stack,
STAGE: scope.stage,
APP: props.app,
};
super(scope, id, {
code: Code.fromEcrImage(
Repository.fromRepositoryAttributes(scope, 'mobile-fastly-cache-purger-ecr', {
repositoryArn: props.repositoryArn,
repositoryName: props.repositoryName,
}), {
tagOrDigest: props.imageTag,
}
),
environment: {
...props.environment,
...defaultEnvironmentVariables,
},
runtime: Runtime.FROM_IMAGE,
handler: Handler.FROM_IMAGE,
...props,
}
);
}