Skip to content

Commit 98cd776

Browse files
authored
Merge #5902 feat(lambda): Lambda Getting Started
2 parents f58de3a + fe602c6 commit 98cd776

File tree

134 files changed

+15041
-2095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+15041
-2095
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ To run a single test in VSCode, do any one of:
188188
189189
- Unix/macOS/POSIX shell:
190190
```
191-
TEST_FILE=src/test/foo.test.ts npm run test
191+
TEST_FILE=../core/src/test/foo.test.ts npm run test
192192
```
193193
- Powershell:
194194
```
195-
$Env:TEST_FILE = "src/test/foo.test.ts"; npm run test
195+
$Env:TEST_FILE = "../core/src/test/foo.test.ts"; npm run test
196196
```
197197
198198
- To run all tests in a particular subdirectory, you can edit
@@ -209,11 +209,11 @@ To run tests against a specific folder in VSCode, do any one of:
209209
- Run in your terminal
210210
- Unix/macOS/POSIX shell:
211211
```
212-
TEST_DIR=src/test/foo npm run test
212+
TEST_DIR=../core/src/test/foo npm run test
213213
```
214214
- Powershell:
215215
```
216-
$Env:TEST_DIR = "src/test/foo"; npm run test
216+
$Env:TEST_DIR = "../core/src/test/foo"; npm run test
217217
```
218218
219219
### Coverage report

package-lock.json

Lines changed: 882 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
"webpack-merge": "^5.10.0"
7171
},
7272
"dependencies": {
73-
"@types/node": "^18.19.55",
73+
"@types/node": "^22.7.5",
74+
"@aws-toolkits/telemetry": "^1.0.242",
7475
"vscode-nls": "^5.2.0",
7576
"vscode-nls-dev": "^4.0.4"
7677
}

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@
461461
"@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming",
462462
"@aws-sdk/client-cognito-identity": "^3.637.0",
463463
"@aws-sdk/client-lambda": "^3.637.0",
464+
"@aws-sdk/client-cloudformation": "^3.667.0",
464465
"@aws-sdk/client-sso": "^3.342.0",
465466
"@aws-sdk/client-sso-oidc": "^3.574.0",
466467
"@aws-sdk/credential-provider-ini": "3.46.0",

packages/core/package.nls.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,18 @@
7979
"AWS.configuration.description.amazonq.workspaceIndexUseGPU": "Enable GPU to help index your local workspace files. Only applies to Linux and Windows.",
8080
"AWS.configuration.description.amazonq.workspaceIndexMaxSize": "The maximum size of local workspace files to be indexed in MB",
8181
"AWS.command.apig.copyUrl": "Copy URL",
82-
"AWS.command.apig.invokeRemoteRestApi": "Invoke on AWS",
82+
"AWS.command.apig.invokeRemoteRestApi": "Invoke in the cloud",
8383
"AWS.command.apig.invokeRemoteRestApi.cn": "Invoke on Amazon",
84+
"AWS.appBuilder.explorerTitle": "Application Builder",
85+
"AWS.appBuilder.explorerNode.noApps": "[This resource is not yet supported.]",
86+
"AWS.appBuilder.explorerNode.unavailableDeployedResource": "[Failed to retrive deployed resource.]",
87+
"AWS.command.appBuilder.openHandler": "Open Function Handler",
8488
"AWS.command.applicationComposer.open": "Open with Infrastructure Composer",
89+
"AWS.command.appBuilder.openTemplate": "Open Template File",
90+
"AWS.command.appBuilder.deploy": "Deploy SAM Application",
91+
"AWS.command.appBuilder.build": "Build SAM Template",
92+
"AWS.command.appBuilder.searchLogs": "Search Logs",
93+
"AWS.command.refreshappBuilderExplorer": "Refresh Application Builder Explorer",
8594
"AWS.command.applicationComposer.openDialog": "Open Template with Infrastructure Composer...",
8695
"AWS.command.auth.addConnection": "Add New Connection",
8796
"AWS.command.auth.showConnectionsPage": "Add New Connection",
@@ -118,7 +127,7 @@
118127
"AWS.command.aboutToolkit": "About",
119128
"AWS.command.downloadLambda": "Download...",
120129
"AWS.command.uploadLambda": "Upload Lambda...",
121-
"AWS.command.invokeLambda": "Invoke on AWS",
130+
"AWS.command.invokeLambda": "Invoke in the cloud",
122131
"AWS.command.invokeLambda.cn": "Invoke on Amazon",
123132
"AWS.command.refreshAwsExplorer": "Refresh Explorer",
124133
"AWS.command.refreshCdkExplorer": "Refresh CDK Explorer",
@@ -148,6 +157,8 @@
148157
"AWS.command.renderStateMachineGraph": "Render graph",
149158
"AWS.command.copyArn": "Copy ARN",
150159
"AWS.command.copyName": "Copy Name",
160+
"AWS.command.openAwsConsole": "Go to AWS management console",
161+
"AWS.command.openAwsConsole.cn": "Go to Amazon management console",
151162
"AWS.command.listCommands": "Show AWS Commands...",
152163
"AWS.command.listCommands.cn": "Show Amazon Commands...",
153164
"AWS.command.downloadStateMachineDefinition": "Download Definition...",
@@ -198,8 +209,8 @@
198209
"AWS.command.ssmDocument.openLocalDocumentJson": "Download as JSON",
199210
"AWS.command.ssmDocument.openLocalDocumentYaml": "Download as YAML",
200211
"AWS.command.ssmDocument.publishDocument": "Publish a Systems Manager Document",
201-
"AWS.command.launchConfigForm.title": "Edit SAM Debug Configuration",
202-
"AWS.command.addSamDebugConfig": "Add SAM Debug Configuration",
212+
"AWS.command.launchConfigForm.title": "Local Invoke and Debug Configuration",
213+
"AWS.command.addSamDebugConfig": "Add Local Invoke and Debug Configuration",
203214
"AWS.command.toggleSamCodeLenses": "Toggle SAM hints in source files",
204215
"AWS.command.apprunner.createService": "Create Service",
205216
"AWS.command.apprunner.createServiceFromEcr": "Create App Runner Service",

packages/core/resources/icons/aws/applicationcomposer/icon-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

packages/core/resources/icons/aws/applicationcomposer/icon.svg

Lines changed: 1 addition & 1 deletion
Loading

packages/core/resources/markdown/samReadme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ${LISTOFCONFIGURATIONS}
1313

1414
You can debug the Lambda handlers locally by adding a breakpoint to the source file, then running the launch configuration. This works by using Docker on your local machine.
1515

16-
Invocation parameters, including payloads and request parameters, can be edited either by the `Edit SAM Debug Configuration` command (through the ${COMMANDPALETTE} or ${CODELENS}) or by editing the `launch.json` file.
16+
Invocation parameters, including payloads and request parameters, can be edited either by the `Local Invoke and Debug Configuration` command (through the ${COMMANDPALETTE} or ${CODELENS}) or by editing the `launch.json` file.
1717

18-
${COMPANYNAME} Lambda functions not defined in the [`template.yaml`](./template.yaml) file can be invoked and debugged by creating a launch configuration through the ${CODELENS} over the function declaration, or with the `Add SAM Debug Configuration` command.
18+
${COMPANYNAME} Lambda functions not defined in the [`template.yaml`](./template.yaml) file can be invoked and debugged by creating a launch configuration through the ${CODELENS} over the function declaration, or with the `Add Local Invoke and Debug Configuration` command.
1919

2020
## Deploying Serverless Applications
2121

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<checklist>
2+
<div class="theme-picker-row">
3+
<checkbox when-checked="command:aws.toolkit.lambda.setWalkthroughToAPI" checked-on="aws.toolkit.lambda.walkthroughSelected == 'API'">
4+
<img width="200" src="./AppPickerResource/API.png"/>
5+
Rest API
6+
</checkbox>
7+
<checkbox when-checked="command:aws.toolkit.lambda.setWalkthroughToS3" checked-on="aws.toolkit.lambda.walkthroughSelected == 'S3'">
8+
<img width="200" src="./AppPickerResource/S3.png"/>
9+
File processing
10+
</checkbox>
11+
</div>
12+
<div class="theme-picker-row">
13+
<checkbox when-checked="command:aws.toolkit.lambda.setWalkthroughToVisual" checked-on="aws.toolkit.lambda.walkthroughSelected == 'Visual'">
14+
<img width="200" src="./AppPickerResource/AppComposer.png"/>
15+
New template with visual builder
16+
</checkbox>
17+
<checkbox when-checked="command:aws.toolkit.lambda.setWalkthroughToCustomTemplate" checked-on="aws.toolkit.lambda.walkthroughSelected == 'CustomTemplate'">
18+
<img width="200" src="./AppPickerResource/CustomTemplate.png"/>
19+
Current workspace template
20+
</checkbox>
21+
</div>
22+
</checklist>
23+
<checkbox class="theme-picker-link" when-checked="command:aws.lambda.createNewSamApp" checked-on="false">
24+
See more application example...
25+
</checkbox>
83.3 KB
Loading

0 commit comments

Comments
 (0)