@gradientedge/cdk-utils 9.23.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
- aws_cdk_lib_1.Fn.importValue(`${this.id}-${this.props.stage}-${lodash_1.default.camelCase(`${this.id}Lambda-${alias.aliasName}`)}AliasArn`),
167
- `${aws_cdk_lib_1.Fn.importValue(`${this.id}-${this.props.stage}-${lodash_1.default.camelCase(`${this.id}Lambda-${alias.aliasName}`)}AliasArn`)}*`,
166
+ `${this.lambdaFunction.functionArn}:${alias.aliasName}`,
167
+ `${this.lambdaFunction.functionArn}:${alias.aliasName}*`,
168
168
  ],
169
169
  }),
170
170
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.23.0",
3
+ "version": "9.24.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -209,10 +209,8 @@ export class LambdaWithIamAccess extends CommonConstruct {
209
209
  new PolicyStatement({
210
210
  actions: ['lambda:InvokeFunction'],
211
211
  resources: [
212
- Fn.importValue(
213
- `${this.id}-${this.props.stage}-${_.camelCase(`${this.id}Lambda-${alias.aliasName}`)}AliasArn`
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
  ],