We have a cloud application that runs on AWS. This application consists of AWS Lambda functions and uses various AWS services, including S3, SQS, SNS, DynamoDB, Timestream, IoT Core (MQTT broker), Redis, and Kinesis.
Is it possible to run this application on-premises in a secure environment without an Internet connection and without rewriting the code? I understand that AWS Outpost allows running Lambda functions. However, will it even work without ever being able to connect to the AWS cloud?
If this is not possible, what is the recommended/right way for updating such application to support on-premises and cloud environments?