aws-solutions / aws-control-tower-customizations

The Customizations for AWS Control Tower solution combines AWS Control Tower and other highly-available, trusted AWS services to help customers more quickly set up a secure, multi-account AWS environment using AWS best practices.
https://docs.aws.amazon.com/controltower/latest/userguide/cfct-overview.html
Apache License 2.0
355 stars 205 forks source link

Builds have started failing 100% of the time while installing corretto #116

Closed willdady closed 2 years ago

willdady commented 2 years ago

Builds have started failing with the following error:

Errors were encountered while processing:
--
526 | java-1.8.0-amazon-corretto-jdk:amd64
527 | E: Sub-process /usr/bin/dpkg returned an error code (1)

The final lines of the build log are:

[Container] 2022/05/15 23:43:19 Phase complete: INSTALL State: FAILED
[Container] 2022/05/15 23:43:19 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: apt-get update && apt-get upgrade -y. Reason: exit status 100

Am using v2.2.0 in ap-southeast-2. The template was downloaded directly from the solution webpage and has not been modified in any way.

The error seems identical to this issue: https://github.com/aws/aws-codebuild-docker-images/issues/523

This is a pretty major show-stopper. The solution is effectively broken because of this.

willdady commented 2 years ago

Closing. Upgrading to v2.3.0 fixed the issue.