@friggframework/devtools 2.0.0--canary.461.ae53ecc.0 → 2.0.0--canary.461.709ac64.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.
|
@@ -102,9 +102,9 @@ class AuroraBuilder extends InfrastructureBuilder {
|
|
|
102
102
|
// Set management based on isolation strategy AND existing stack resources
|
|
103
103
|
if (vpcIsolation === 'isolated') {
|
|
104
104
|
// Check if CloudFormation stack already has Aurora (stage-specific)
|
|
105
|
-
//
|
|
106
|
-
const hasStackAurora = discoveredResources?.
|
|
107
|
-
typeof discoveredResources.
|
|
105
|
+
// CloudFormation discovery sets 'auroraClusterId' (string) when found in stack
|
|
106
|
+
const hasStackAurora = discoveredResources?.auroraClusterId &&
|
|
107
|
+
typeof discoveredResources.auroraClusterId === 'string';
|
|
108
108
|
|
|
109
109
|
if (hasStackAurora) {
|
|
110
110
|
// Stack has Aurora - reuse it (standard flow: stack → orphaned → create)
|
|
@@ -766,9 +766,8 @@ describe('AuroraBuilder', () => {
|
|
|
766
766
|
|
|
767
767
|
// CloudFormation stack has Aurora (from previous deployment of this stage)
|
|
768
768
|
const discoveredResources = {
|
|
769
|
-
|
|
770
|
-
auroraClusterEndpoint: 'stack-cluster-dev.us-east-1.rds.amazonaws.com', //
|
|
771
|
-
auroraPort: 5432,
|
|
769
|
+
auroraClusterId: 'stack-cluster-dev', // CloudFormation discovery sets this
|
|
770
|
+
auroraClusterEndpoint: 'stack-cluster-dev.us-east-1.rds.amazonaws.com', // For discover mode
|
|
772
771
|
auroraClusterPort: 5432,
|
|
773
772
|
auroraClusterIdentifier: 'stack-cluster-dev',
|
|
774
773
|
privateSubnetId1: 'subnet-1',
|
|
@@ -144,8 +144,12 @@ class VpcBuilder extends InfrastructureBuilder {
|
|
|
144
144
|
// Set management based on isolation strategy AND existing stack resources
|
|
145
145
|
if (vpcIsolation === 'isolated') {
|
|
146
146
|
// Check if CloudFormation stack already has a VPC (stage-specific)
|
|
147
|
-
//
|
|
148
|
-
const hasStackVpc = discoveredResources?.
|
|
147
|
+
// CloudFormation discovery sets 'defaultVpcId' (string) when found in stack
|
|
148
|
+
const hasStackVpc = discoveredResources?.defaultVpcId && typeof discoveredResources.defaultVpcId === 'string';
|
|
149
|
+
|
|
150
|
+
// Debug logging
|
|
151
|
+
console.log(` 🔍 DEBUG: discoveredResources.defaultVpcId = ${discoveredResources?.defaultVpcId} (type: ${typeof discoveredResources?.defaultVpcId})`);
|
|
152
|
+
console.log(` 🔍 DEBUG: hasStackVpc = ${hasStackVpc}`);
|
|
149
153
|
|
|
150
154
|
if (hasStackVpc) {
|
|
151
155
|
// Stack has VPC - reuse it (standard flow: stack → orphaned → create)
|
|
@@ -849,8 +849,7 @@ describe('VpcBuilder', () => {
|
|
|
849
849
|
|
|
850
850
|
// CloudFormation stack has VPC (from previous deployment of this stage)
|
|
851
851
|
const discoveredResources = {
|
|
852
|
-
|
|
853
|
-
defaultVpcId: 'vpc-stack-dev', // Also set for discover mode
|
|
852
|
+
defaultVpcId: 'vpc-stack-dev', // CloudFormation discovery sets this
|
|
854
853
|
privateSubnetId1: 'subnet-private-1',
|
|
855
854
|
privateSubnetId2: 'subnet-private-2',
|
|
856
855
|
publicSubnetId1: 'subnet-public-1',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.461.
|
|
4
|
+
"version": "2.0.0--canary.461.709ac64.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@babel/eslint-parser": "^7.18.9",
|
|
12
12
|
"@babel/parser": "^7.25.3",
|
|
13
13
|
"@babel/traverse": "^7.25.3",
|
|
14
|
-
"@friggframework/schemas": "2.0.0--canary.461.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.709ac64.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.709ac64.0",
|
|
16
16
|
"@hapi/boom": "^10.0.1",
|
|
17
17
|
"@inquirer/prompts": "^5.3.8",
|
|
18
18
|
"axios": "^1.7.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"serverless-http": "^2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.709ac64.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.709ac64.0",
|
|
39
39
|
"aws-sdk-client-mock": "^4.1.0",
|
|
40
40
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
41
41
|
"jest": "^30.1.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "709ac64cc35601420ce84ace897a02315fa37ef4"
|
|
74
74
|
}
|