CDK Kendra FAQ Creation failure with GeneralServiceException

0

I am trying to create Kendra FAQs with the code snippet below and it is failing with either DescribeIndex failure or GeneralServiceException.

const KENDRA_FAQ_KEYS = ['tnc', 'sns', 'Route53', 's3', 'TechnicalSupport', 'aurora', 'BillingandAccount', 'CloudFront', 'connect', 'DynamoDB', 'EBS', 'EC2', 'ElasticBeanstalk', 'fargate', 'IAM', 'lambda', 'product_faq1', 'product_faq2', 'Redshift'];

for (let i=0; i<KENDRA_FAQ_KEYS.length; i++) {
      const faq = KENDRA_FAQ_KEYS[i];
      const currentFAQ = new CfnFaq(this, `Kendra-FAQ-${faq}`, {
        indexId: kendraIndex.attrId,
        name: faq,
        roleArn: faqRole.roleArn,
        s3Path: {
          bucket: kendraBucket.bucketName,
          key: `kendra-faqs/${faq}.csv`,
        },
        fileFormat: 'CSV_WITH_HEADER',
      });

      if (prevFAQ) { // this is to test if there is a DescribeIndex throttling issue (seems like it...)
        currentFAQ.addDependsOn(prevFAQ);
        prevFAQ = currentFAQ;
      }
    }

Sample errors

1:22:29 PM | CREATE_FAILED        | AWS::Kendra::Faq            | Kendra-FAQ-s3
Unable to retrieve Id attribute for AWS::Kendra::Index, with error message Error
occurred during operation 'DescribeIndex'.
1:22:29 PM | CREATE_FAILED        | AWS::Kendra::Faq            | Kendra-FAQ-Tech
nicalSupport
Resource handler returned message: "Error occurred during operation 'CreateFaq'."
(RequestToken: 36cbaa78-9e73-2485-a4c6-8f6a20f2957d, HandlerErrorCode: GeneralSer
viceException)
AWS
gefragt vor 2 Jahren123 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen