Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The integration currently supports the following AWS resource types:
- `S3 Buckets`: Complete bucket information including properties, tags, and metadata.
- `ECS Clusters`: Cluster details, services, and task definitions.
- `EC2 Instances`: Instance information, security groups, and networking details.
- `Lambda Functions`: Function details, runtime configuration, and execution metadata.

:::info More Resource Types Coming Soon
We're actively working on adding support for additional AWS resource types to provide comprehensive coverage of your AWS infrastructure.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import Ec2InstanceProperties from './examples/ec2/instances/_ec2_instance_proper
import OrganizationsAccountBlueprint from './examples/organizations/accounts/_organizations_accounts_blueprint.mdx'
import OrganizationsAccountConfig from './examples/organizations/accounts/_organizations_accounts_port_app_config.mdx'
import OrganizationsAccountProperties from './examples/organizations/accounts/_organizations_accounts_properties.mdx'
import AwsLambdaFunctionBlueprint from './examples/aws_lambda/function/_aws_lambda_function_blueprint.mdx'
import AwsLambdaFunctionConfig from './examples/aws_lambda/function/_aws_lambda_function_port_app_config.mdx'
import AwsLambdaFunctionProperties from './examples/aws_lambda/function/_aws_lambda_function_properties.mdx'

# Examples

Expand Down Expand Up @@ -107,6 +110,24 @@ You can reference any of the following EC2 instance properties in your mapping c

For more details about EC2 instance properties, refer to the [AWS EC2 API documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html).

## AWS Lambda

### Lambda Functions

The following example demonstrates how to ingest your AWS Lambda functions to Port.

You can use the following Port blueprint definitions and integration configuration:

<AwsLambdaFunctionBlueprint/>

<AwsLambdaFunctionConfig/>

You can reference any of the following Lambda function properties in your mapping configuration:

<AwsLambdaFunctionProperties/>

For more details about Lambda function properties, refer to the [AWS Lambda API documentation](https://docs.aws.amazon.com/lambda/latest/APIReference/API_GetFunction.html).

:::info More resource types coming soon
We're actively working on adding support for additional AWS resource types to provide comprehensive coverage of your AWS infrastructure.
:::
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>
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"
}
}
]
}
}
}
]
}
```

</details>

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>