@punks/backend-entity-manager 0.0.305 → 0.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,15 @@
1
1
  import { JobDefinition } from "../../../../extensions/jobs/abstractions/definition";
2
2
  export type AwsJobComputePlatformType = "ec2" | "fargate";
3
+ export type AwsJobEnvironmentVariable = {
4
+ name: string;
5
+ value: string;
6
+ };
3
7
  export type AwsBatchInfrastructureParams = {
4
8
  vcpu: number;
5
9
  memory: number;
6
10
  gpu?: number;
7
11
  dockerImage: string;
12
+ environmentVariables?: AwsJobEnvironmentVariable[];
8
13
  computePlatformType?: AwsJobComputePlatformType;
9
14
  assignPublicIp?: boolean;
10
15
  logGroupName?: string;
package/dist/esm/index.js CHANGED
@@ -40098,6 +40098,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40098
40098
  ? [PlatformCapability.EC2]
40099
40099
  : [PlatformCapability.FARGATE],
40100
40100
  containerProperties: {
40101
+ environment: definition.infrastructureParams.environmentVariables,
40101
40102
  privileged: definition.infrastructureParams.privileged ?? false,
40102
40103
  command: definition.invocationParams.startCommand,
40103
40104
  image: definition.infrastructureParams.dockerImage,