@gradientedge/cdk-utils 7.1.0 → 7.2.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.
@@ -43,6 +43,7 @@ export declare class EcsManager {
43
43
  * @param {logs.ILogGroup} logGroup
44
44
  * @param {ecs.ContainerImage} containerImage
45
45
  * @param {Map<string, string>} environment
46
+ * @param {Map<string, string>} secrets
46
47
  */
47
- createEcsFargateTask(id: string, scope: common.CommonConstruct, props: types.EcsTaskProps, cluster: ecs.ICluster, role: iam.Role, logGroup: logs.ILogGroup, containerImage: ecs.ContainerImage, environment?: any): ecs.TaskDefinition;
48
+ 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): ecs.TaskDefinition;
48
49
  }
@@ -80,8 +80,9 @@ class EcsManager {
80
80
  * @param {logs.ILogGroup} logGroup
81
81
  * @param {ecs.ContainerImage} containerImage
82
82
  * @param {Map<string, string>} environment
83
+ * @param {Map<string, string>} secrets
83
84
  */
84
- createEcsFargateTask(id, scope, props, cluster, role, logGroup, containerImage, environment) {
85
+ createEcsFargateTask(id, scope, props, cluster, role, logGroup, containerImage, environment, secrets) {
85
86
  if (!props)
86
87
  throw `EcsTask props undefined`;
87
88
  const ecsTask = new ecs.TaskDefinition(scope, `${id}`, {
@@ -104,6 +105,7 @@ class EcsManager {
104
105
  }),
105
106
  memoryLimitMiB: props.memoryMiB ? parseInt(props.memoryMiB) : undefined,
106
107
  privileged: false,
108
+ secrets: secrets,
107
109
  });
108
110
  utils.createCfnOutput(`${id}-taskArn`, scope, ecsTask.taskDefinitionArn);
109
111
  return ecsTask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -63,6 +63,7 @@ export class EcsManager {
63
63
  * @param {logs.ILogGroup} logGroup
64
64
  * @param {ecs.ContainerImage} containerImage
65
65
  * @param {Map<string, string>} environment
66
+ * @param {Map<string, string>} secrets
66
67
  */
67
68
  public createEcsFargateTask(
68
69
  id: string,
@@ -72,7 +73,8 @@ export class EcsManager {
72
73
  role: iam.Role,
73
74
  logGroup: logs.ILogGroup,
74
75
  containerImage: ecs.ContainerImage,
75
- environment?: any
76
+ environment?: any,
77
+ secrets?: any
76
78
  ) {
77
79
  if (!props) throw `EcsTask props undefined`
78
80
 
@@ -97,6 +99,7 @@ export class EcsManager {
97
99
  }),
98
100
  memoryLimitMiB: props.memoryMiB ? parseInt(props.memoryMiB) : undefined,
99
101
  privileged: false,
102
+ secrets: secrets,
100
103
  })
101
104
 
102
105
  utils.createCfnOutput(`${id}-taskArn`, scope, ecsTask.taskDefinitionArn)