Skip to content
Proud to collaborate with Microsoft for Startups

aws.lambda.create_function ​

Call AWS Lambda CreateFunction using a CloudConnection UUID.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-aws
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID used for field resolution and connection scoping.
connection_uuiduuidYes—AWS CloudConnection UUID for the target IAM account, scoped to the caller organization.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
regionstringNo—AWS API endpoint region override; omit to use the connection or SDK default.
function_namestringYes—The name or ARN of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN – 123456789012:function:my-f...
runtimestringNo—The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a conta...
rolestringYes—The Amazon Resource Name (ARN) of the function's execution role.
handlerstringNo—The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also...
codejsonYes—The code for the function.
descriptionstringNo—A description of the function.
timeoutintegerNo—The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda executi...
memory_sizeintegerNo—The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
publishbooleanNo—Set to true to publish the first version of the function during creation.
vpc_configjsonNo—For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the i...
package_typestringNo—The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
dead_letter_configjsonNo—A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
environmentjsonNo—Environment variables that are accessible from function code during execution.
kms_key_arnstringNo—The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables. The function's Lambda SnapStart snapshots. Whe...
tracing_configjsonNo—Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
tagsjsonNo—A list of tags to apply to the function.
layerslistNo—A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
file_system_configslistNo—Connection settings for an Amazon EFS file system or an Amazon S3 Files file system.
image_configjsonNo—Container image configuration values that override the values in the container image Dockerfile.
code_signing_config_arnstringNo—To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for t...
architectureslistNo—The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
ephemeral_storagejsonNo—The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
snap_startjsonNo—The function's SnapStart setting.
logging_configjsonNo—The function's Amazon CloudWatch Logs configuration settings.
capacity_provider_configjsonNo—Configuration for the capacity provider that manages compute resources for Lambda functions.
publish_tostringNo—Specifies where to publish the function version or configuration.
durable_configjsonNo—Configuration settings for durable functions. Enables creating functions with durability that can remember their state and continue execution even after interruptions.
tenancy_configjsonNo—Configuration for multi-tenant applications that use Lambda functions. Defines tenant isolation settings and resource allocations. Required for functions supporting multiple tenants.
provider_native_requestjsonNo—Optional provider-native request overrides for AWS parameters not yet promoted to first-class fields.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Organization UUID echoed from input.
connection_uuiduuidNo—AWS CloudConnection UUID echoed from input.
regionstringNo—AWS API endpoint region used.
servicestringNo—AWS boto3 service/client name.
operationstringNo—AWS API operation invoked.
request_idstringNo—AWS request ID when available.
responsejsonNo—Sanitized provider response object.
itemslistNo—Primary response item list when the API returns a collection.
result_countintegerNo—Count of primary response items.
next_page_tokenstringNo—Pagination token for the next page.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Failed DAG layer if engine supplies one.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "aws.lambda.create_function",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "function_name": "value",
    "role": "value"
  }
}