The build files are currently built with the cdk stack so resources like security groups and IAM policies don't exist yet.
There is code to get those IDs on an update, but the files should really be correct after initial deployment.
Propose to create them in a Lambda custom resource with the resource IDs passed as parameters so that they are resolved
during CFN deployment.
The ParallelCluster custom resource should depend on the build-files since it will download the build files from S3.
Describe the bug
The build files are currently built with the cdk stack so resources like security groups and IAM policies don't exist yet. There is code to get those IDs on an update, but the files should really be correct after initial deployment.
Propose to create them in a Lambda custom resource with the resource IDs passed as parameters so that they are resolved during CFN deployment.
The ParallelCluster custom resource should depend on the build-files since it will download the build files from S3.