(amplify-alpha): (Java CDK generate build phases in order) #28256
Labels
@aws-cdk/aws-amplify
Related to AWS Amplify
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
Java CDK will not generate amplify.yml
phases
in order ofpreBuild
,build
, andpostBuild
.Expected Behavior
So I hope if it's possible for CDK Java Package to always generate the amplify.yml
phases
in order ofpreBuild
, thenbuild
, thenpostBuild
, regardless of the order in which they are defined by java.utils.Map.Current Behavior
I'm currently using CDK Java amplify-alpha service to deploy my next.js frontend. I noticed that after
cdk deploy
, the build process error occurred asBecause the amplify.yml defined by java.util.Map does not maintain the order of phases as
preBuild
thenbuild
, it might generate something as:From my personal understanding, the container will try to run build first, and next has not been installed yet by preBuild command, thus caused the error. I always need to manually adjust the
amplify.yml
afterwards.Reproduction Steps
The text was updated successfully, but these errors were encountered: