@gradientedge/cdk-utils 9.23.0 → 9.25.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.
- package/dist/src/lib/aws/construct/lambda-with-iam-access/main.js +2 -2
- package/dist/src/lib/aws/services/virtual-private-cloud/main.js +1 -1
- package/package.json +1 -1
- package/src/lib/aws/construct/lambda-with-iam-access/main.ts +2 -4
- package/src/lib/aws/services/virtual-private-cloud/main.ts +4 -1
|
@@ -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
|
],
|
|
@@ -87,7 +87,7 @@ class VpcManager {
|
|
|
87
87
|
*/
|
|
88
88
|
retrieveCommonVpc(id, scope, vpcIdentifier) {
|
|
89
89
|
return aws_ec2_1.Vpc.fromLookup(scope, `${id}`, {
|
|
90
|
-
vpcName: scope.resourceNameFormatter.format(vpcIdentifier ?? CommonVpcIdentifier),
|
|
90
|
+
vpcName: scope.resourceNameFormatter.format(vpcIdentifier ?? CommonVpcIdentifier, scope.props.resourceNameOptions?.vpc),
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
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
|
],
|
|
@@ -99,7 +99,10 @@ export class VpcManager {
|
|
|
99
99
|
*/
|
|
100
100
|
public retrieveCommonVpc(id: string, scope: CommonConstruct, vpcIdentifier?: string) {
|
|
101
101
|
return Vpc.fromLookup(scope, `${id}`, {
|
|
102
|
-
vpcName: scope.resourceNameFormatter.format(
|
|
102
|
+
vpcName: scope.resourceNameFormatter.format(
|
|
103
|
+
vpcIdentifier ?? CommonVpcIdentifier,
|
|
104
|
+
scope.props.resourceNameOptions?.vpc
|
|
105
|
+
),
|
|
103
106
|
})
|
|
104
107
|
}
|
|
105
108
|
}
|