@friggframework/devtools 2.0.0--canary.461.ae53ecc.0 → 2.0.0--canary.461.9667b72.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
- // Only string endpoints mean resources are from stack (not CloudFormation refs)
106
- const hasStackAurora = discoveredResources?.auroraEndpoint &&
107
- typeof discoveredResources.auroraEndpoint === 'string';
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
- auroraEndpoint: 'stack-cluster-dev.us-east-1.rds.amazonaws.com', // String = from stack
770
- auroraClusterEndpoint: 'stack-cluster-dev.us-east-1.rds.amazonaws.com', // Also set for discover mode
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,8 @@ 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
- // Only string IDs mean resources are from stack (not CloudFormation refs)
148
- const hasStackVpc = discoveredResources?.vpcId && typeof discoveredResources.vpcId === 'string';
147
+ // CloudFormation discovery sets 'defaultVpcId' (string) when found in stack
148
+ const hasStackVpc = discoveredResources?.defaultVpcId && typeof discoveredResources.defaultVpcId === 'string';
149
149
 
150
150
  if (hasStackVpc) {
151
151
  // 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
- vpcId: 'vpc-stack-dev', // String = from stack (not default VPC)
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.ae53ecc.0",
4
+ "version": "2.0.0--canary.461.9667b72.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.ae53ecc.0",
15
- "@friggframework/test": "2.0.0--canary.461.ae53ecc.0",
14
+ "@friggframework/schemas": "2.0.0--canary.461.9667b72.0",
15
+ "@friggframework/test": "2.0.0--canary.461.9667b72.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.ae53ecc.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.461.ae53ecc.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.461.9667b72.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.461.9667b72.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": "ae53eccb40200f7624ba14908c90b0123051e5a0"
73
+ "gitHead": "9667b7204b9faaeb6caf8d1a94841ab365f9b7a3"
74
74
  }