Kinesis Data Analytics for SQL Applications
Introduction
Section titled “Introduction”Kinesis Data Analytics for SQL Applications is a service offered by Amazon Web Services (AWS) that enables you to process and analyze streaming data in real-time. It allows you to apply transformations, filtering, and enrichment to streaming data using standard SQL syntax.
LocalStack allows you to use the Kinesis Data Analytics APIs in your local environment. The supported APIs is available on our API Coverage section.
Getting started
Section titled “Getting started”This guide is designed for users new to Kinesis Data Analytics and assumes basic knowledge of the AWS CLI and our awslocal
wrapper script.
Start your LocalStack container using your preferred method. We will demonstrate how to create a Kinesis Analytics application using AWS CLI.
Create an application
Section titled “Create an application”You can create a Kinesis Analytics application using the CreateApplication
API by running the following command:
awslocal kinesisanalytics create-application \ --application-name test-analytics-app
{ "ApplicationSummary": { "ApplicationName": "test-analytics-app", "ApplicationARN": "arn:aws:kinesisanalytics:us-east-1:000000000000:application/test-analytics-app", "ApplicationStatus": "READY" }}
Describe the application
Section titled “Describe the application”You can describe the application using the DescribeApplication
API by running the following command:
awslocal kinesisanalytics describe-application \ --application-name test-analytics-app
{ "ApplicationDetail": { "ApplicationName": "test-analytics-app", "ApplicationARN": "arn:aws:kinesisanalytics:us-east-1:000000000000:application/test-analytics-app", "ApplicationStatus": "READY", "CreateTimestamp": 1718194721.567, "InputDescriptions": [], "OutputDescriptions": [], "ReferenceDataSourceDescriptions": [], "CloudWatchLoggingOptionDescriptions": [], "ApplicationVersionId": 1 }}
Tag the application
Section titled “Tag the application”Add tags to the application using the TagResource
API by running the following command:
awslocal kinesisanalytics tag-resource \ --resource-arn arn:aws:kinesisanalytics:us-east-1:000000000000:application/test-analytics-app \ --tags Key=test,Value=test
You can list the tags for the application using the ListTagsForResource
API by running the following command:
awslocal kinesisanalytics list-tags-for-resource \ --resource-arn arn:aws:kinesisanalytics:us-east-1:000000000000:application/test-analytics-app
{ "Tags": [ { "Key": "test", "Value": "test" } ]}
Limitations
Section titled “Limitations”- LocalStack supports basic emulation for Kinesis Data Analytics for SQL Applications. However, the queries are not fully supported and lack parity with AWS.
API Coverage
Section titled “API Coverage”Operation ▲ | Implemented | Image |
---|