content-analysis-on-aws
content-analysis-on-aws copied to clipboard
CREATE_FAILED with "Domain cannot contain reserved word: aws"
tl;dr - don't let your stack name contain "aws"
The MieCognitoDomain step had a with "Domain cannot contain reserved word: aws (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: [redacted]; Proxy: null)"
I found the error in CloudTrail CreateUserPoolDomain event:
"eventName": "CreateUserPoolDomain",
"errorCode": "InvalidParameterException",
"errorMessage": "Domain cannot contain reserved word: aws",
"requestParameters": {
"userPoolId": "us-east-1_HYsU8EgOr",
"domain": "aws-content-analysis-dataplane-1hocmg2w2zumk"
},
And I realized when naming my stack, I choose "aws-content-analysis" and AWS::StackName was implicitly used at some point.
I'm not sure if any check can be done, but writing this issue in case anyone else hits this problem and searches for the error message.