aws AWS Contact Center Blog ·

Automate Amazon Connect Customer Data Lake Setup with CDK Construct

bloginfraawsengineer
announcement

This post details cdk-construct-connect-datalake, an open-source AWS CDK construct that automates the setup of an Amazon Connect Customer data lake. It simplifies the process of associating datasets, accepting resource shares, configuring permissions, and creating resource link tables, which is otherwise a repetitive manual task. The post guides readers through deploying the construct using TypeScript (with support for other languages) and verifying the configuration before querying data with Amazon Athena. Prerequisites include an AWS account, an Amazon Connect instance, and AWS CDK v2 installed.

  • Automated Data Lake Access Setup
  • Construct Deployment and Verification
  • Querying Data with Amazon Athena
  • Cleanup Process
Notes (4)
  • Automated Data Lake Access Setup

    The DataLakeAccess CDK construct automates the configuration of Amazon Connect Customer data lake access by associating datasets, accepting resource shares, setting up the execution role as a data lake administrator, and creating resource link tables in the AWS Glue Data Catalog.

  • Construct Deployment and Verification

    The post provides a walkthrough of installing the construct, adding it to a CDK stack, deploying with `cdk deploy`, and verifying the setup via CloudFormation outputs, AWS CLI commands, and the AWS Management Console. It highlights how to check dataset associations, resource shares, and resource link tables.

  • Querying Data with Amazon Athena

    Once the data lake access is configured, users can query their Amazon Connect data, such as contact records, using Amazon Athena. Example SQL queries are provided to validate data existence and analyze call volume and handle time.

  • Cleanup Process

    The `cdk destroy` command is recommended for cleaning up all deployed resources, including IAM roles, Lambda functions, dataset associations, and resource link tables, to avoid future charges. Note that constructs must be deleted before the associated Connect instance.

Read the original announcement →

https://aws.amazon.com/blogs/contact-center/build-an-amazon-connect-customer-data-lake-with-a-reusable-cdk-construct/

Related releases