Docs Menu
Docs Home
/
Atlas
/ /

External Function Connections

Atlas Stream Processing supports embedding calls to AWS Lambda resources within your Atlas Stream Processing pipeline. To learn more, see the Atlas Stream Processing External Functions documentation.

You can add your AWS Lambda resource as a connection through the Atlas UI, the MongoDB Terraform provider, the Atlas CLI, or the Atlas API, as shown in the following example. You can update the roleArn placeholder in the example with the arn from your AWS IAM configuration.

curl --user "username:password" --digest \
--header "Content-Type: application/json" \
--header "Accept: application/vnd.atlas.2023-02-01+json" \
--include \
--data '{"name": "TestAWSLambdaConnection","type": "AWSLambda","aws": {"roleArn": "arn:aws:iam::<aws_account>:role/<role_name>"}}' \
--request POST "https://cloud.mongodb.com/api/atlas/v2/groups/<group_id>/streams/<tenant_name>/connections"

Back

HTTPS Connections

On this page