aws-solutions-library-samples / guidance-for-aws-deepracer-event-management

The AWS DeepRacer Event Manager (DREM) is used to run and manage all aspects of in-person events for AWS DeepRacer, an autonomous 1/18th scale race car designed to test reinforcement learning (RL) models by racing on a physical track.
https://aws.amazon.com/solutions/guidance/aws-deepracer-event-management/
MIT No Attribution
16 stars 12 forks source link

Running `make install` on a new deployment fails due to `CodeStarNotifications` #65

Open davidfsmith opened 1 month ago

davidfsmith commented 1 month ago

Running make install on a new deployment fails due to CodeStarNotifications

drem-pipeline-main: creating CloudFormation changeset...
16:58:26 | CREATE_FAILED        | AWS::CodeStarNotifications::NotificationRule | NotificationRule44229486
Resource handler returned message: "Invalid request provided: AWS::CodeStarNotifications::NotificationRule" (RequestToken: abf74393-352f-0fd6-2d08-7c612c397d59, HandlerErrorCode: InvalidRequest)

 ❌  drem-pipeline-main failed: Error: The stack named drem-pipeline-main failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Invalid request provided: AWS::CodeStarNotifications::NotificationRule" (RequestToken: abf74393-352f-0fd6-2d08-7c612c397d59, HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:443:10236)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.deployStack2 [as deployStack] (/Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:446:153718)
    at async /Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:446:137166

 ❌ Deployment failed: Error: The stack named drem-pipeline-main failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Invalid request provided: AWS::CodeStarNotifications::NotificationRule" (RequestToken: abf74393-352f-0fd6-2d08-7c612c397d59, HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:443:10236)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.deployStack2 [as deployStack] (/Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:446:153718)
    at async /Users/davidsmith/Documents/Development/deepracer/drem/node_modules/aws-cdk/lib/index.js:446:137166

The stack named drem-pipeline-main failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Invalid request provided: AWS::CodeStarNotifications::NotificationRule" (RequestToken: abf74393-352f-0fd6-2d08-7c612c397d59, HandlerErrorCode: InvalidRequest)
make: *** [pipeline.deploy] Error 1
davidfsmith commented 1 month ago

Interestingly after running make install the pipeline creation completed successfully

StevenAskwith commented 3 weeks ago

Yes, I can replicate this bug.

Th first make install fail, but if you re-run make install it will then run cleanly. I think we have a race condition somewhere in the CDK/CloudFormation.