Hi AWS, I am using AWS CDK Stack Builder Tool to deploy an application using this GitHub sample repo https://github.com/aws-samples/aws-cdk-stack-builder-tool. While I am running the CDK CLI command npx cdk deploy
, I am getting the access error denied i.e.
****9:37:55 AM | CREATE_FAILED | AWS::CloudFront::Distribution | WebsiteDistirbutio...stributionE1110367
Resource handler returned message: "Access denied for operation 'AWS::CloudFront::Distribution: Your account must be verified before you can add new CloudFront resources. To verify your ac
count, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include this error message. (Service: CloudFront, Status Code: 403, Request ID: 57518ca1-40f0-4d9d-9f6
5-9b3fa0b66b46)'." (RequestToken: ce0bb642-a60a-1dd2-0ceb-6bf842f62354, HandlerErrorCode: AccessDenied)
❌ cdk-builder failed: Error: The stack named cdk-builder failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Access denied for operation 'AWS::CloudFront::Distribution: Your account must be verified before you can add new CloudFront resources. To verify your account, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include this error message. (Service: CloudFront, Status Code: 403, Request ID: 57518ca1-40f0-4d9d-9f65-9b3fa0b66b46)'." (RequestToken: ce0bb642-a60a-1dd2-0ceb-6bf842f62354, HandlerErrorCode: AccessDenied)
at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:440:10568)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:443:199515)
at async /home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:443:181237
❌ Deployment failed: Error: The stack named cdk-builder failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Access denied for operation 'AWS::CloudFront::Distribution: Your account must be verified before you can add new CloudFront resources. To verify your account, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include this error message. (Service: CloudFront, Status Code: 403, Request ID: 57518ca1-40f0-4d9d-9f65-9b3fa0b66b46)'." (RequestToken: ce0bb642-a60a-1dd2-0ceb-6bf842f62354, HandlerErrorCode: AccessDenied)
at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:440:10568)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:443:199515)
at async /home/ec2-user/aws-cdk-stack-builder-tool/node_modules/aws-cdk/lib/index.js:443:181237
The stack named cdk-builder failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Access denied for operation 'AWS::CloudFront::Distribution: Your account must be verified before you can add new CloudFront resources. To verify your account, please contact AWS Support (https://console.aws.amazon.com/support/home#/) and include this error message. (Service: CloudFront, Status Code: 403, Request ID: 57518ca1-40f0-4d9d-9f65-9b3fa0b66b46)'." (RequestToken: ce0bb642-a60a-1dd2-0ceb-6bf842f62354, HandlerErrorCode: AccessDenied)****
This is weird as the IAM user is having AdministratorAccess
policy attached and the user is configured on the EC2 server where I am running the CDK CLI commands. Please help.