Skip to content

About

Amazon Managed Service for Apache Flink applications, organized by language and use case, running on LocalStack

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

Amazon Managed Service for Apache Flink Examples

This repository contains sample applications for Amazon Managed Service for Apache Flink, organized by language and operational use cases.

Prerequisites

Run the following command before starting LocalStack with your preferred method:

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>

Samples

Testing on LocalStack

test.sh deploys a Java example as a Managed Flink application on LocalStack and checks its output. CI runs it for two examples:

lstk start
mvn -B package -DskipTests -f java/S3Sink/pom.xml
./test.sh S3Sink

Applications that use the Kinesis connectors need two extra runtime properties on LocalStack, which test.sh sets for GettingStarted:

  • aws.endpoint set to https://localhost.localstack.cloud:4566 on each stream's property group. By default the connectors call kinesis.<region>.amazonaws.com, and LocalStack's TLS certificate does not cover that name.
  • aws.http.protocol.version set to HTTP1_1 on the sink's property group. The sink's AWS SDK v2 client uses HTTP/2 by default, which fails against LocalStack.

Security

See CONTRIBUTING for more information.

License

This sample code is made available under the MIT-0 license. See LICENSE.

About

Amazon Managed Service for Apache Flink applications, organized by language and use case, running on LocalStack

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages