- Newest
- Most votes
- Most comments
Based on the information provided and the error message you're encountering, there are a few additional considerations and steps you can take to resolve the issue with your AWS DMS to Kinesis Data Streams replication:
-
VPC Endpoint or Public Access: For AWS DMS version 3.4.7 and higher, when connecting to a Kinesis endpoint, you need to either configure DMS to use VPC endpoints or make your replication instance public. Since you mentioned enabling public access for DMS, ensure that your replication instance is indeed set to be public.
-
Security Group Configuration: Verify that the security group associated with your DMS replication instance allows outbound traffic to the Kinesis service. This is crucial for the connection to be established.
-
IAM Role Permissions: While the IAM permissions you've listed look correct for Kinesis operations, ensure that the role also has permissions to assume the role itself. You might need to add the "sts:AssumeRole" permission to the policy.
-
Kinesis Stream ARN: Double-check that the ARN specified in the Resource field of your IAM policy exactly matches your Kinesis stream's ARN, including the correct region and account ID.
-
Endpoint Configuration: When creating the Kinesis target endpoint in DMS, make sure you've correctly specified the ARN of the IAM role you created (dms-kinesis-role) in the endpoint settings.
-
Network Configuration: Ensure that the subnets associated with your DMS replication instance have proper routing to reach the Kinesis service, either through an internet gateway (for public subnets) or a NAT gateway (for private subnets).
-
Kinesis Service Access: If you're using a VPC endpoint for Kinesis, verify that it's properly set up in the same VPC as your DMS replication instance, with the correct subnets and security groups.
If these steps don't resolve the issue, you may want to check the DMS task logs for more detailed error messages. Additionally, consider using AWS CloudTrail to monitor API calls and identify any permission-related issues that might not be immediately apparent.
Sources
Using Amazon Kinesis Data Streams as a target for AWS Database Migration Service - AWS Database Migration Service
Tune replication performance with AWS DMS for an Amazon Kinesis Data Streams target endpoint – Part 3 | AWS Database Blog
answered 2 years ago
