You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/KinesisConnectors/README.md
+66-1Lines changed: 66 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Every parameter in the `InputStream0` group is passed to the Kinesis consumer, a
40
40
41
41
See Flink Kinesis connector docs](https://nightlies.apache.org/flink/flink-docs-release-1.19/docs/connectors/datastream/kinesis/) for details about configuring the Kinesis conector.
42
42
43
-
To configure the applicaton on Managed Service for Apache Flink, set up these parameter in the *Runtime properties*.
43
+
To configure the application on Managed Service for Apache Flink, set up these parameter in the *Runtime properties*.
44
44
45
45
To configure the application for running locally, edit the [json file](resources/flink-application-properties-dev.json).
46
46
@@ -55,3 +55,68 @@ See [Running examples locally](../running-examples-locally.md) for details.
55
55
You can use [Kinesis Data Generator](https://github.com/awslabs/amazon-kinesis-data-generator),
56
56
also available in a [hosted version](https://awslabs.github.io/amazon-kinesis-data-generator/web/producer.html),
57
57
to generate random data to Kinesis Data Stream and test the application.
58
+
59
+
---
60
+
61
+
## Cross-account access to Kinesis
62
+
63
+
You can use the Kinesis source and sink to read and write to a Kinesis Stream in a different account,
64
+
by configuring the connector to assume an IAM Role in the stream account.
65
+
66
+
This requires:
67
+
1. An IAM Role in the stream account with sufficient permissions to read or write the Kinesis stream, and allow the Managed Flink application account to assume this role.
68
+
2. Add to the Managed Flink application IAM role permissions to assume the previous role.
69
+
3. Configure the Kinesis source or sink to assume the role.
70
+
71
+
> Note: this approach also works with the legacy `FlinkKinesisConsumer`.
72
+
73
+
### IAM Role in the stream account
74
+
75
+
In the stream account, create a role with permissions to read or write the stream.
76
+
See [Kinesis Data Streams documentation](https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html#kinesis-using-iam-examples) for details.
77
+
78
+
Add a Trust Relationship to this role, allowing the application account to assume it:
0 commit comments