This solution walks you through the process of migrating from DynamoDB to Cloud Spanner. The solution is based on moving a sample dataset and uses other technologies, like Cloud Dataflow, Cloud Storage and Cloud Pub/Sub, to help facilitate the migration.
The guide can be found at: https://cloud.google.com/solutions/migrating-dynamodb-to-cloud-spanner