awslabs / aws-sdk-kotlin

Multiplatform AWS SDK for Kotlin
Apache License 2.0
414 stars 49 forks source link

Announcement: Changes to service endpoints for DynamoDB #1417

Closed kellertk closed 1 month ago

kellertk commented 1 month ago

In AWS SDK for Kotlin v1.3.37, we released changes to the DynamoDB client that adopt a new AWS account-based endpoints feature. For more information on account based endpoints, please refer to the official SDK documentation. In SDK releases from this version on, clients will connect to a DynamoDB endpoint in the form of (account-id).ddb.(region).amazonaws.com instead of dynamodb.(region).amazonaws.com.

If your network configuration blocks outgoing traffic to DynamoDB based on DNS names or endpoint URLs, you must adjust your configuration, because the service's DNS name will change. You may also choose to switch to an IP-based configuration. The IP address ranges for DynamoDB, as well as other AWS services, can be found in the AWS documentation.

You may instead disable account-based endpoints for DynamoDB by setting the config property accountIdEndpointMode to AccountIdEndpointMode.DISABLED:

DynamoDbClient.fromEnvironment {
    accountIdEndpointMode = AccountIdEndpointMode.DISABLED
}

We recommend against this because the DynamoDB service uses account-based endpoints to ensure performance and scalability.