@friggframework/devtools 2.0.0-next.34 → 2.0.0-next.35

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.
@@ -5,7 +5,7 @@ async function deployCommand(options) {
5
5
  console.log('Deploying the serverless application...');
6
6
 
7
7
  // AWS discovery is now handled directly in serverless-template.js
8
- console.log('🔥 Deploying serverless application...');
8
+ console.log('🤘🏼 Deploying serverless application...');
9
9
  const backendPath = path.resolve(process.cwd());
10
10
  const infrastructurePath = 'infrastructure.js';
11
11
  const command = 'serverless';
@@ -17,8 +17,6 @@ async function deployCommand(options) {
17
17
  options.stage,
18
18
  ];
19
19
 
20
- console.log('>>> Env vars: ', JSON.stringify(process.env));
21
-
22
20
  const childProcess = spawn(command, serverlessArgs, {
23
21
  cwd: backendPath,
24
22
  stdio: 'inherit',
@@ -558,7 +558,11 @@ const composeServerlessDefinition = async (AppDefinition) => {
558
558
  // Debug: log keys of env vars available during deploy (to verify GA -> Serverless pass-through)
559
559
  try {
560
560
  const envKeys = Object.keys(process.env || {}).sort();
561
- console.log('Frigg deploy env keys (sample):', envKeys.slice(0, 30), `... total=${envKeys.length}`);
561
+ console.log(
562
+ 'Frigg deploy env keys (sample):',
563
+ envKeys.slice(0, 30),
564
+ `... total=${envKeys.length}`
565
+ );
562
566
  } catch (e) {
563
567
  console.log('Frigg deploy env keys: <unavailable>', e?.message);
564
568
  }
@@ -584,8 +588,18 @@ const composeServerlessDefinition = async (AppDefinition) => {
584
588
  environment: {
585
589
  STAGE: '${opt:stage, "dev"}',
586
590
  AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1,
587
- // Pass through all environment variables from the deployment process
588
- ...process.env,
591
+ // Pass through FRIGG__ prefixed variables (stripping the prefix)
592
+ // This avoids CloudFormation validation errors from system variables
593
+ ...Object.fromEntries(
594
+ Object.entries(process.env)
595
+ .filter(([key]) => key.startsWith('FRIGG__'))
596
+ .map(([key, value]) => [
597
+ key.replace('FRIGG__', ''),
598
+ value,
599
+ ])
600
+ ),
601
+ // Also include essential non-prefixed variables
602
+ ...(process.env.NODE_ENV && { NODE_ENV: process.env.NODE_ENV }),
589
603
  // Add discovered resources to environment if available
590
604
  ...(discoveredResources.defaultVpcId && {
591
605
  AWS_DISCOVERY_VPC_ID: discoveredResources.defaultVpcId,
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-next.34",
4
+ "version": "2.0.0-next.35",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -9,8 +9,8 @@
9
9
  "@babel/eslint-parser": "^7.18.9",
10
10
  "@babel/parser": "^7.25.3",
11
11
  "@babel/traverse": "^7.25.3",
12
- "@friggframework/schemas": "2.0.0-next.34",
13
- "@friggframework/test": "2.0.0-next.34",
12
+ "@friggframework/schemas": "2.0.0-next.35",
13
+ "@friggframework/test": "2.0.0-next.35",
14
14
  "@hapi/boom": "^10.0.1",
15
15
  "@inquirer/prompts": "^5.3.8",
16
16
  "axios": "^1.7.2",
@@ -32,8 +32,8 @@
32
32
  "serverless-http": "^2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@friggframework/eslint-config": "2.0.0-next.34",
36
- "@friggframework/prettier-config": "2.0.0-next.34",
35
+ "@friggframework/eslint-config": "2.0.0-next.35",
36
+ "@friggframework/prettier-config": "2.0.0-next.35",
37
37
  "prettier": "^2.7.1",
38
38
  "serverless": "3.39.0",
39
39
  "serverless-dotenv-plugin": "^6.0.0",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "13e17e28d6859ea0c4d30a14255db89d4968bcde"
68
+ "gitHead": "2b5b01f23819faad6b2780f1aaabbd9bfb52fe4a"
69
69
  }