-
Notifications
You must be signed in to change notification settings - Fork 60
Add AWS Lambda Function Examples #2859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shariff-6
wants to merge
7
commits into
main
Choose a base branch
from
PORT-16516-AWS-Lambda-Function
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
33fdb92
Ads aws lambda function example
shariff-6 3a15a5b
Merge branch 'main' into PORT-16516-AWS-Lambda-Function
shariff-6 778789e
Update docs/build-your-software-catalog/sync-data-to-catalog/cloud-pr…
shariff-6 b3cdc08
Update docs/build-your-software-catalog/sync-data-to-catalog/cloud-pr…
shariff-6 19aee7a
Merge branch 'main' into PORT-16516-AWS-Lambda-Function
shariff-6 6f8a7f2
Add support for AWS Lambda Functions in documentation
shariff-6 0418bc2
Merge branch 'main' into PORT-16516-AWS-Lambda-Function
shariff-6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...roviders/aws-v3/examples/aws_lambda/function/_aws_lambda_function_blueprint.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
<details> | ||
<summary><b>Lambda instance blueprint (click to expand)</b></summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"identifier": "aws_lambda_function", | ||
"title": "AWS Lambda Function", | ||
"icon": "AWS", | ||
"schema": { | ||
"properties": { | ||
"function_name": { | ||
"type": "string", | ||
"title": "Function Name", | ||
"description": "The name of the Lambda function" | ||
}, | ||
"function_arn": { | ||
"type": "string", | ||
"title": "Function ARN", | ||
"description": "The Amazon Resource Name (ARN) of the Lambda function" | ||
}, | ||
"runtime": { | ||
"type": "string", | ||
"title": "Runtime", | ||
"description": "The runtime environment for the Lambda function" | ||
}, | ||
"handler": { | ||
"type": "string", | ||
"title": "Handler", | ||
"description": "The function that Lambda calls to begin execution" | ||
}, | ||
"memory_size": { | ||
"type": "number", | ||
"title": "Memory Size (MB)", | ||
"description": "The amount of memory available to the function at runtime" | ||
}, | ||
"timeout": { | ||
"type": "number", | ||
"title": "Timeout (seconds)", | ||
"description": "The amount of time that Lambda allows a function to run before stopping it" | ||
}, | ||
"state": { | ||
"type": "string", | ||
"title": "State", | ||
"description": "The current state of the Lambda function" | ||
}, | ||
"last_modified": { | ||
"type": "string", | ||
"title": "Last Modified", | ||
"description": "The date and time that the function was last updated" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"title": "Description", | ||
"description": "A description of the function" | ||
}, | ||
"role": { | ||
"type": "string", | ||
"title": "Execution Role", | ||
"description": "The Amazon Resource Name (ARN) of the function's execution role" | ||
} | ||
}, | ||
"required": ["function_name", "function_arn"] | ||
} | ||
} | ||
``` | ||
|
||
</details> |
38 changes: 38 additions & 0 deletions
38
...rs/aws-v3/examples/aws_lambda/function/_aws_lambda_function_port_app_config.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<details> | ||
<summary><b>Lambda instance mapping configuration (click to expand)</b></summary> | ||
|
||
```json showLineNumbers | ||
{ | ||
"resources": [ | ||
{ | ||
"kind": "aws_lambda/function", | ||
"port": { | ||
"entity": { | ||
"mappings": [ | ||
{ | ||
"identifier": ".FunctionName", | ||
"title": ".FunctionName", | ||
"blueprint": "aws_lambda_function", | ||
"properties": { | ||
"function_name": ".FunctionName", | ||
"function_arn": ".FunctionArn", | ||
"runtime": ".Runtime", | ||
"handler": ".Handler", | ||
"memory_size": ".MemorySize", | ||
"timeout": ".Timeout", | ||
"state": ".State", | ||
"last_modified": ".LastModified", | ||
"description": ".Description", | ||
"role": ".Role" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
shariff-6 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</details> | ||
|
44 changes: 44 additions & 0 deletions
44
...oviders/aws-v3/examples/aws_lambda/function/_aws_lambda_function_properties.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<details> | ||
<summary><b>Lambda function properties (click to expand)</b></summary> | ||
|
||
| Property | JQ Path | Type | Action Required | | ||
|----------|---------|------|-----------------| | ||
| Architectures | `.Properties.Architectures` | array | ListFunctionsAction (default) | | ||
| Code SHA256 | `.Properties.CodeSha256` | string | ListFunctionsAction (default) | | ||
| Code Size | `.Properties.CodeSize` | number | ListFunctionsAction (default) | | ||
| Dead Letter Config | `.Properties.DeadLetterConfig` | object | ListFunctionsAction (default) | | ||
| Description | `.Properties.Description` | string | ListFunctionsAction (default) | | ||
| Environment | `.Properties.Environment` | object | ListFunctionsAction (default) | | ||
| Ephemeral Storage | `.Properties.EphemeralStorage` | object | ListFunctionsAction (default) | | ||
| File System Configs | `.Properties.FileSystemConfigs` | array | ListFunctionsAction (default) | | ||
| Function ARN | `.Properties.FunctionArn` | string | ListFunctionsAction (default) | | ||
| Function Name | `.Properties.FunctionName` | string | ListFunctionsAction (default) | | ||
| Handler | `.Properties.Handler` | string | ListFunctionsAction (default) | | ||
| Image Config Response | `.Properties.ImageConfigResponse` | object | ListFunctionsAction (default) | | ||
| KMS Key ARN | `.Properties.KmsKeyArn` | string | ListFunctionsAction (default) | | ||
| Last Modified | `.Properties.LastModified` | string | ListFunctionsAction (default) | | ||
| Last Update Status | `.Properties.LastUpdateStatus` | string | ListFunctionsAction (default) | | ||
| Last Update Status Reason | `.Properties.LastUpdateStatusReason` | string | ListFunctionsAction (default) | | ||
| Last Update Status Reason Code | `.Properties.LastUpdateStatusReasonCode` | string | ListFunctionsAction (default) | | ||
| Layers | `.Properties.Layers` | array | ListFunctionsAction (default) | | ||
| Logging Config | `.Properties.LoggingConfig` | object | ListFunctionsAction (default) | | ||
| Master ARN | `.Properties.MasterArn` | string | ListFunctionsAction (default) | | ||
| Memory Size | `.Properties.MemorySize` | number | ListFunctionsAction (default) | | ||
| Package Type | `.Properties.PackageType` | string | ListFunctionsAction (default) | | ||
| Revision ID | `.Properties.RevisionId` | string | ListFunctionsAction (default) | | ||
| Role | `.Properties.Role` | string | ListFunctionsAction (default) | | ||
| Runtime | `.Properties.Runtime` | string | ListFunctionsAction (default) | | ||
| Runtime Version Config | `.Properties.RuntimeVersionConfig` | object | ListFunctionsAction (default) | | ||
| Signing Job ARN | `.Properties.SigningJobArn` | string | ListFunctionsAction (default) | | ||
| Signing Profile Version ARN | `.Properties.SigningProfileVersionArn` | string | ListFunctionsAction (default) | | ||
| Snap Start | `.Properties.SnapStart` | object | ListFunctionsAction (default) | | ||
| State | `.Properties.State` | string | ListFunctionsAction (default) | | ||
| State Reason | `.Properties.StateReason` | string | ListFunctionsAction (default) | | ||
| State Reason Code | `.Properties.StateReasonCode` | string | ListFunctionsAction (default) | | ||
| Tags | `.Properties.Tags` | array | ListTagsAction (optional) | | ||
| Timeout | `.Properties.Timeout` | number | ListFunctionsAction (default) | | ||
| Tracing Config | `.Properties.TracingConfig` | object | ListFunctionsAction (default) | | ||
| Version | `.Properties.Version` | string | ListFunctionsAction (default) | | ||
| VPC Config | `.Properties.VpcConfig` | object | ListFunctionsAction (default) | | ||
|
||
</details> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.