@gradientedge/cdk-utils 9.24.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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.24.0",
3
+ "version": "9.25.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -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(vpcIdentifier ?? CommonVpcIdentifier),
102
+ vpcName: scope.resourceNameFormatter.format(
103
+ vpcIdentifier ?? CommonVpcIdentifier,
104
+ scope.props.resourceNameOptions?.vpc
105
+ ),
103
106
  })
104
107
  }
105
108
  }