Based on the scenario that you've described, you are better off using Azure Data Factory (ADF) instead, which is designed to move and transform data.
With ADF, you will have to use the following connectors, and like Logic Apps, build a visual pipeline.
- Binary Dataset with compression settings as required (handled decompression)
- Amazon S3 Connector
- Copy Activity
- ADLS Gen2 Connector
You can refer to this solution doc that covers migrating data from Amazon S3 to Azure Storage as a starting point.