Connect LabAmazon Connect study

Foundations

Lambda is a seam, not a place to hide a CRM

Learn it in 5 minutes

HTML

About five minutes of reading

The flow will not wait for a slow system of record. Design the function for the timeout you actually have.

Synchronous invoke waits at most 8 seconds. Asynchronous mode can be paired with a Wait of up to 60 seconds. A chain of Lambda calls in one contact must stay within 20 seconds.

Connect retries throttles and HTTP 500s, up to three times, until the block timeout. Your function should be safe to run twice.

  • Add the function to the instance. An identity policy alone does not let the flow invoke it.
  • Return a flat string map or JSON, matching the block. Nested objects fail a string-map block.
  • Log the ContactId. The flow log has no Lambda RequestId to join on.
  • Default block timeout is 3 seconds. Raise it on purpose, not by hoping.

Number on this page: Sync max 8s. Then Error or Timeout

Visual

HTML
Lambda is a seam, not a place to hide a CRM

Picture from this room.

Worked example

HTML
  1. Associate. Function on the instance.
  2. Invoke. Sync or async.
  3. Shape. String map or JSON.
  4. Branch. Success, Error, Timeout.

What usually goes wrong: Setting the Lambda console timeout to 30 seconds and assuming the flow will wait.

Quiz

HTML

Question 1

Which term matches this description? Associate exam across the breadth of AWS services. Best general exam for the IAM, network, S3, Lambda, and Kinesis design Connect sits on.

Show the cited answer

Associate exam across the breadth of AWS services. Best general exam for the IAM, network, S3, Lambda, and Kinesis design Connect sits on. The term is AWS Certified Solutions Architect - Associate.

AWS Certification - Validate AWS Cloud Skills - Get AWS Certified AWS docs. last checked 2026-10

Question 2

Which term matches this description? Associate exam for data models and life cycle. Fits CTR pipelines and the analytics data lake, not day-to-day flow design.

Show the cited answer

Associate exam for data models and life cycle. Fits CTR pipelines and the analytics data lake, not day-to-day flow design. The term is AWS Certified Data Engineer - Associate.

AWS Certification - Validate AWS Cloud Skills - Get AWS Certified AWS docs. last checked 2026-10

Question 3

Which term matches this description? Add the function to the instance. An identity policy alone does not let the flow invoke it.

Show the cited answer

Add the function to the instance. An identity policy alone does not let the flow invoke it. The term is Lambda is a seam, not a place to hide a CRM (1).

Flow block in Connect Customer: AWS Lambda function - Amazon Connect Customer AWS docs. last checked 2026-10

Sources

HTML

Flow block in Connect Customer: AWS Lambda function - Amazon Connect Customer AWS docs. last checked 2026-10

The prose is a study paraphrase. The link is the source of the facts.

Ecosystem

HTML

Glossary

  • Contact One interaction: a call, chat, task, or email. A transfer usually creates another contact linked by PreviousContactId and NextContactId.
  • Connect Customer The name used from 28 Apr 2026 for the contact center product previously called Amazon Connect.
  • CloudWatch Metrics and flow logs. Alarm at 80 percent of a quota, which is the operations guidance in the email quota note.
  • Kinesis Data Streams The durable stream for CTRs and agent events when more than one consumer must read them.

Mind map

Open the Foundations mind map

Sister technologies

A flow fails in IAM, a Region, a log group, or a network rule long before it fails as a 'Connect bug'.

Config and troubleshooting

Setting the Lambda console timeout to 30 seconds and assuming the flow will wait.

IAM, Lambda, S3, Kinesis, and CloudWatch are not inside the instance. This stack creates the instance and turns on flow logs and Contact Lens.

CfnInstance AWS::Connect::Instance

CloudFormation study snippet
AWSTemplateFormatVersion: "2010-09-09"
Description: Connect instance with flow logs and Contact Lens
Resources:
  CampusInstance:
    Type: AWS::Connect::Instance
    Properties:
      IdentityManagementType: SAML
      InstanceAlias: campus-demo
      Attributes:
        InboundCalls: true
        OutboundCalls: true
        ContactflowLogs: true
        ContactLens: true

Integration map

Join records on ContactId. The integration map room lists the seams.

Cross-platform bridges

A CUCM calling search space is not a routing profile, but the profile is the closest idea of 'who can receive what'. A partition is not a Connect object. A UCCX CSQ and a UCCE skill group map to a queue. Precision steps map to routing criteria. A script, an Architect flow, and an Avaya vector map to a contact flow.

Open the mapping room

Future hooks

Hooks you can adopt later: EventBridge contact events, the CTR stream, agent events, Kinesis Video, Customer Profiles events, Cases, Show view, data tables, External Tool, and the flow language JSON in your pipeline. Live Sync and Agentic CX are the 2026 hooks for guided and agentic experiences.

Sources and go deeper

sources.json