QPC-database / getting-started-with-amazon-redshift-data-api

Samples to help you get started with the Amazon Redshift Data API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started with Redshift Data API

In this repo we’ll be leveraging AWS Lambda to access Redshift Data API. You are able to access the Data API from other platforms such as Amazon EC2, AWS Glue, Amazon SageMaker, and from your on-premises resources. Each language has its own code sample with the ultimate aim of complete language parity (same subset of examples exist in each language).

These examples provide a demonstration on common sql operations such as create, copy, update, delete and select implementation in either synchronous or asynchronous mode that will be useful in building modern apps such as event-driven applications.

Introduction

The Amazon Redshift Data API enables you to efficiently access data from Amazon Redshift with all types of traditional, cloud-native, and containerized, serverless web services-based applications and event-driven applications. This includes, but not limited to, AWS Lambda, Amazon SageMaker, AWS Cloud9 and many other AWS services.

Amazon Redshift Data API simplifies data access, ingest, and egress from the languages supported with AWS SDK such as Python, Go, Java, Node.js, PHP, Ruby, and C++.

In this tutorial, we’ll be leveraging AWS Lambda to access Redshift Data API. However, with little modifications of the code, you are able to access the Data API from other platforms such as Amazon EC2, AWS Glue, Amazon SageMaker, and from your on-premises resources.

Tutorial Overview

Before you use Amazon Redshift Data API with this tutorial, please make sure your AWS user account has access to Lambda and Redshift. IAM Role configuration will be explained in each subsequent section. For more information about authorization, please see Authorizing Access to Amazon Redshift Data API.

The tutorial will demonstrate on how accessing Redshift Data API in Python and Java. Other programming languages examples are on the roadmap.

Architectural Diagram

Architecture Diagram

About Redshift Data API

Amazon Redshift Data API by default is asynchronous. This means when executing SQL commands, you can retrieve your results later for up to 24 hours with a generated Query ID. However, you can also configure your code to have your SQL commands run synchronously. The implementation is demonstrated within the code samples.

Others

  • Considerations when calling the Amazon Redshift Data API: Link

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Samples to help you get started with the Amazon Redshift Data API

License:MIT No Attribution


Languages

Language:Jupyter Notebook 41.0%Language:Python 24.6%Language:JavaScript 14.3%Language:TypeScript 6.4%Language:Java 6.0%Language:Go 4.9%Language:HTML 2.0%Language:Shell 0.8%