@gradientedge/cdk-utils 8.8.0 → 8.9.0

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.
@@ -45,8 +45,9 @@ export declare class EcsManager {
45
45
  * @param {ecs.ContainerImage} containerImage
46
46
  * @param {Map<string, string>} environment
47
47
  * @param {Map<string, string>} secrets
48
+ * @param {string[]} command
48
49
  */
49
- createEcsFargateTask(id: string, scope: common.CommonConstruct, props: types.EcsTaskProps, cluster: ecs.ICluster, role: iam.Role, logGroup: logs.ILogGroup, containerImage: ecs.ContainerImage, environment?: any, secrets?: any): cdk.aws_ecs.TaskDefinition;
50
+ createEcsFargateTask(id: string, scope: common.CommonConstruct, props: types.EcsTaskProps, cluster: ecs.ICluster, role: iam.Role, logGroup: logs.ILogGroup, containerImage: ecs.ContainerImage, environment?: any, secrets?: any, command?: string[]): cdk.aws_ecs.TaskDefinition;
50
51
  /**
51
52
  * @summary Method to create an application loadbalanced ecs fargate task
52
53
  * @param {string} id scoped id of the resource
@@ -83,8 +83,9 @@ class EcsManager {
83
83
  * @param {ecs.ContainerImage} containerImage
84
84
  * @param {Map<string, string>} environment
85
85
  * @param {Map<string, string>} secrets
86
+ * @param {string[]} command
86
87
  */
87
- createEcsFargateTask(id, scope, props, cluster, role, logGroup, containerImage, environment, secrets) {
88
+ createEcsFargateTask(id, scope, props, cluster, role, logGroup, containerImage, environment, secrets, command) {
88
89
  if (!props)
89
90
  throw `EcsTask props undefined for ${id}`;
90
91
  const ecsTask = new ecs.TaskDefinition(scope, `${id}`, {
@@ -119,6 +120,7 @@ class EcsManager {
119
120
  memoryLimitMiB: props.memoryMiB ? parseInt(props.memoryMiB) : undefined,
120
121
  privileged: false,
121
122
  secrets: secrets,
123
+ command: command,
122
124
  });
123
125
  utils.createCfnOutput(`${id}-taskArn`, scope, ecsTask.taskDefinitionArn);
124
126
  return ecsTask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.8.0",
3
+ "version": "8.9.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -66,6 +66,7 @@ export class EcsManager {
66
66
  * @param {ecs.ContainerImage} containerImage
67
67
  * @param {Map<string, string>} environment
68
68
  * @param {Map<string, string>} secrets
69
+ * @param {string[]} command
69
70
  */
70
71
  public createEcsFargateTask(
71
72
  id: string,
@@ -76,7 +77,8 @@ export class EcsManager {
76
77
  logGroup: logs.ILogGroup,
77
78
  containerImage: ecs.ContainerImage,
78
79
  environment?: any,
79
- secrets?: any
80
+ secrets?: any,
81
+ command?: string[]
80
82
  ) {
81
83
  if (!props) throw `EcsTask props undefined for ${id}`
82
84
 
@@ -113,6 +115,7 @@ export class EcsManager {
113
115
  memoryLimitMiB: props.memoryMiB ? parseInt(props.memoryMiB) : undefined,
114
116
  privileged: false,
115
117
  secrets: secrets,
118
+ command: command,
116
119
  })
117
120
 
118
121
  utils.createCfnOutput(`${id}-taskArn`, scope, ecsTask.taskDefinitionArn)