Skip to content

Commit 34bf571

Browse files
authored
fix(lambda): Adding note in Local Invoke (#1862)
## Problem Adding a note in Local Invoke Webview page to let the user know to input the environment variables manually, if their test will need environment variables values. ## [Solution] The solution looks like as shown in the image below: <img width="871" alt="Screenshot 2024-10-24 at 3 14 37 PM" src="https://github.com/user-attachments/assets/dc6561a3-66dc-4e20-81e3-7d9f1f98e63f">
1 parent 4e9f806 commit 34bf571

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/lambda/vue/configEditor/samInvokeComponent.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
Using this form you can create, edit, and run launch-configs of <code>type:aws-sam</code>. When you
2828
<strong>Invoke</strong> the launch config, {{ company }} Toolkit calls SAM CLI and attaches the
2929
debugger to the code running in a local Docker container. open
30-
<a href="#" @click.prevent="openLaunchJson">launch.json</a>.
30+
<a href="#" @click.prevent="openLaunchJson">launch.json</a>.<br />
31+
<br />
32+
<strong>Note:</strong> If you are accessing environment variables in your function code, ensure you
33+
input them in the "Additional fields -> Lambda -> Environment variables" section, following JSON
34+
format:<code>{"KEY":"VALUE"}</code>
3135
</em>
3236
</p>
3337
<settings-panel id="config-panel" title="General configuration" description="" :start-collapsed="false">

0 commit comments

Comments
 (0)