@gradientedge/cdk-utils 8.95.0 → 8.96.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.
|
@@ -71,7 +71,7 @@ class RestApiLambdaWithCache extends __1.RestApiLambda {
|
|
|
71
71
|
*/
|
|
72
72
|
resolveVpc() {
|
|
73
73
|
if (this.props.useExistingVpc) {
|
|
74
|
-
this.restApivpc = this.vpcManager.retrieveCommonVpc(`${this.id}`, this, this.props.vpcName);
|
|
74
|
+
this.restApivpc = this.vpcManager.retrieveCommonVpc(`${this.id}-vpc`, this, this.props.vpcName);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
77
|
this.restApivpc = this.vpcManager.createCommonVpc(this, this.props.restApiVpc, this.props.restApiVpc.vpcName);
|
|
@@ -82,7 +82,7 @@ class RestApiLambdaWithCache extends __1.RestApiLambda {
|
|
|
82
82
|
*/
|
|
83
83
|
resolveSecurityGroup() {
|
|
84
84
|
if (this.props.securityGroupExportName) {
|
|
85
|
-
this.restApiSecurityGroup = ec2.SecurityGroup.fromSecurityGroupId(this, `${this.id}`, cdk.Fn.importValue(this.props.securityGroupExportName));
|
|
85
|
+
this.restApiSecurityGroup = ec2.SecurityGroup.fromSecurityGroupId(this, `${this.id}-security-group`, cdk.Fn.importValue(this.props.securityGroupExportName));
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
this.restApiSecurityGroup = new ec2.SecurityGroup(this, `${this.id}-security-group-${this.props.stage}`, {
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ export abstract class RestApiLambdaWithCache extends RestApiLambda {
|
|
|
54
54
|
*/
|
|
55
55
|
protected resolveVpc() {
|
|
56
56
|
if (this.props.useExistingVpc) {
|
|
57
|
-
this.restApivpc = this.vpcManager.retrieveCommonVpc(`${this.id}`, this, this.props.vpcName)
|
|
57
|
+
this.restApivpc = this.vpcManager.retrieveCommonVpc(`${this.id}-vpc`, this, this.props.vpcName)
|
|
58
58
|
} else {
|
|
59
59
|
this.restApivpc = this.vpcManager.createCommonVpc(this, this.props.restApiVpc, this.props.restApiVpc.vpcName)
|
|
60
60
|
}
|
|
@@ -67,7 +67,7 @@ export abstract class RestApiLambdaWithCache extends RestApiLambda {
|
|
|
67
67
|
if (this.props.securityGroupExportName) {
|
|
68
68
|
this.restApiSecurityGroup = ec2.SecurityGroup.fromSecurityGroupId(
|
|
69
69
|
this,
|
|
70
|
-
`${this.id}`,
|
|
70
|
+
`${this.id}-security-group`,
|
|
71
71
|
cdk.Fn.importValue(this.props.securityGroupExportName)
|
|
72
72
|
)
|
|
73
73
|
} else {
|