@gradientedge/cdk-utils 9.22.0 → 9.24.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.
|
@@ -163,8 +163,8 @@ class LambdaWithIamAccess extends common_1.CommonConstruct {
|
|
|
163
163
|
new aws_iam_1.PolicyStatement({
|
|
164
164
|
actions: ['lambda:InvokeFunction'],
|
|
165
165
|
resources: [
|
|
166
|
-
|
|
167
|
-
`${
|
|
166
|
+
`${this.lambdaFunction.functionArn}:${alias.aliasName}`,
|
|
167
|
+
`${this.lambdaFunction.functionArn}:${alias.aliasName}*`,
|
|
168
168
|
],
|
|
169
169
|
}),
|
|
170
170
|
],
|
|
@@ -12,7 +12,6 @@ const lodash_1 = __importDefault(require("lodash"));
|
|
|
12
12
|
const common_1 = require("../../common");
|
|
13
13
|
const utils_1 = require("../../utils");
|
|
14
14
|
const cloudfront_1 = require("../cloudfront");
|
|
15
|
-
const systems_manager_1 = require("../systems-manager");
|
|
16
15
|
/**
|
|
17
16
|
* @classdesc Provides operations on AWS Lambda
|
|
18
17
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
@@ -89,9 +88,6 @@ class LambdaManager {
|
|
|
89
88
|
code,
|
|
90
89
|
deadLetterQueue,
|
|
91
90
|
environment: {
|
|
92
|
-
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
93
|
-
? ''
|
|
94
|
-
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}`),
|
|
95
91
|
LOG_LEVEL: props.logLevel,
|
|
96
92
|
REGION: scope.props.region,
|
|
97
93
|
STAGE: scope.props.stage,
|
|
@@ -194,9 +190,6 @@ class LambdaManager {
|
|
|
194
190
|
code,
|
|
195
191
|
deadLetterQueue,
|
|
196
192
|
environment: {
|
|
197
|
-
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
198
|
-
? ''
|
|
199
|
-
: scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}`),
|
|
200
193
|
LOG_LEVEL: props.logLevel,
|
|
201
194
|
REGION: scope.props.region,
|
|
202
195
|
STAGE: scope.props.stage,
|
package/package.json
CHANGED
|
@@ -209,10 +209,8 @@ export class LambdaWithIamAccess extends CommonConstruct {
|
|
|
209
209
|
new PolicyStatement({
|
|
210
210
|
actions: ['lambda:InvokeFunction'],
|
|
211
211
|
resources: [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
),
|
|
215
|
-
`${Fn.importValue(`${this.id}-${this.props.stage}-${_.camelCase(`${this.id}Lambda-${alias.aliasName}`)}AliasArn`)}*`,
|
|
212
|
+
`${this.lambdaFunction.functionArn}:${alias.aliasName}`,
|
|
213
|
+
`${this.lambdaFunction.functionArn}:${alias.aliasName}*`,
|
|
216
214
|
],
|
|
217
215
|
}),
|
|
218
216
|
],
|
|
@@ -130,13 +130,6 @@ export class LambdaManager {
|
|
|
130
130
|
code,
|
|
131
131
|
deadLetterQueue,
|
|
132
132
|
environment: {
|
|
133
|
-
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
134
|
-
? ''
|
|
135
|
-
: scope.ssmManager.readStringParameter(
|
|
136
|
-
`${id}-sm-ts`,
|
|
137
|
-
scope,
|
|
138
|
-
`${SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}`
|
|
139
|
-
),
|
|
140
133
|
LOG_LEVEL: props.logLevel,
|
|
141
134
|
REGION: scope.props.region,
|
|
142
135
|
STAGE: scope.props.stage,
|
|
@@ -291,13 +284,6 @@ export class LambdaManager {
|
|
|
291
284
|
code,
|
|
292
285
|
deadLetterQueue,
|
|
293
286
|
environment: {
|
|
294
|
-
LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
|
|
295
|
-
? ''
|
|
296
|
-
: scope.ssmManager.readStringParameter(
|
|
297
|
-
`${id}-sm-ts`,
|
|
298
|
-
scope,
|
|
299
|
-
`${SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}`
|
|
300
|
-
),
|
|
301
287
|
LOG_LEVEL: props.logLevel,
|
|
302
288
|
REGION: scope.props.region,
|
|
303
289
|
STAGE: scope.props.stage,
|