awslabs / sandbox-accounts-for-events

"Sandbox Accounts for Events" allows to provide multiple, temporary AWS accounts to a number of authenticated users simultaneously via a browser-based GUI.
Apache License 2.0
172 stars 37 forks source link

Deployment fails at CloudFormation resource "DceCodeBuildTerraformDeployment" #53

Closed moellr closed 7 months ago

moellr commented 7 months ago

Version information all versions

Describe the bug New deployments fail at CloudFormation resource DceCodeBuildTerraformDeployment.

Expected behavior Deployment succeeds w/o error message

Additional context CloudWatch LogGroup /aws/codebuild/DeployDce reveals: Error creating Lambda Function (1): InvalidParameterValueException: The runtime parameter of go1.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (provided.al2023) while creating or updating functions

Root Cause This project uses the Disposable Cloud Environment (DCE) project from Optum as backend service. DCE uses Lambda functions with Go1.x runtime, which is now deprecated on AWS. Deploying DCE fails for this reason, which leads to Sandbox Accounts for Events also to fail.

moellr commented 7 months ago

Confirmed. As long as Disposable Cloud Environment (DCE) project is not updated to a new Go runtime, Sandbox Accounts for Events will not be able to deploy correctly. This is a hard dependency.

moellr commented 7 months ago

Fixed with today's commit, I was able to implement a fix that updates DCE's Lambda runtimes to AmazonLinux2 instead of the deprecated Go1.x runtimes. Deployment works fine again now.

I will remove the current fix again when the underlying DCE project updates its configuration in future.