aws-solutions / content-analysis-on-aws

As of August 30, 2023, this AWS Solution is no longer available. Existing deployments will continue to run. The functionality provided by Content Analysis on AWS will be superseded with functionality in Media2Cloud on AWS and Content Localization on AWS. We encourage you to explore these solutions.
https://aws.amazon.com/solutions/implementations/aws-content-analysis/
Apache License 2.0
96 stars 47 forks source link

CREATE_FAILED with "Domain cannot contain reserved word: aws" #8

Closed hakanson closed 1 year ago

hakanson commented 3 years ago

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.