awslabs / aws-deployment-framework

The AWS Deployment Framework (ADF) is an extensive and flexible framework to manage and deploy resources across multiple AWS accounts and regions based on AWS Organizations.
Apache License 2.0
662 stars 225 forks source link

[Bug]: Blocked during make build phase #765

Open AndreiDiaconovici opened 1 month ago

AndreiDiaconovici commented 1 month ago

Is there an existing issue for this?

Describe the bug

Using Cloud9 (AL2023, t3.small, 30gb storage) the make build phase is stuck during the Building Layer "ADFSharedPythonLambdaLayerVersion" image (6)

Expected Behavior

Build should succeed

Current Behavior

-

Steps To Reproduce

  1. Run make using Cloud9 with the configuration AL2023, t3.small, 30gb storage

Possible Solution

No response

Additional Information/Context

No response

ADF Version

4.0.0

Contributing a fix?

sbkok commented 6 days ago

Thanks for reporting this issue. I can confirm that this is reproducible with AL2023. I believe the problem is in the version used by AL2023 and multi-arch container executions.

As a workaround, please use Ubuntu for the time being; or make use of an ARM64 EC2 instance.

sbkok commented 6 days ago

I believe this is the reason why it doesn't work anymore - https://github.com/amazonlinux/amazon-linux-2023/issues/479. A bit surprising, as we tested AL2023 on x86 machines before releasing v4.0.0, I guess something changed in either AL2023 or the SAM build docker images.

Please upvote that issue in the AL2023 repository if you would like to continue to use x86 machines to run ARM 64 docker images.

I will update the docs to explain how to use ARM 64 instances instead. For the time being, please use Ubuntu on x86 or wait until the new installer is released with the required changes for ARM 64, see #775.