Solution 1:

One way in which this could be achieved would be the utilisation of a local QLDB instance that doesn’t make remote calls. DynamoDB for instance has DynamoDB local for these purposes: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html. QLDB however currently doesn’t support a local instance. An alternative to this would be the utilisation of a third party service that enables the development and testing of cloud services offline. One such service is LocalStack: https://localstack.cloud/. LocalStack currently has support for the QLDB APIs: https://localstack.cloud/features/.