-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathAmazon_Machine_Learning_IDP_Lens.json
2969 lines (2967 loc) · 204 KB
/
Amazon_Machine_Learning_IDP_Lens.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"schemaVersion": "2021-11-01",
"name": "Amazon Machine Learning - Intelligent Document Process (IDP) Lens",
"description": "Best Practices on Intelligent Document Process (IDP) Best Practices",
"_version": "1.1.0",
"_release_date": "2023-12-08",
"_release_note": "Setup _no option in each question.",
"pillars": [
{
"id": "operationalExcellence",
"name": "Operational Excellence",
"questions": [
{
"id": "OPS_1",
"title": "How does your organization operating model supports the design, deployment, and management of your IDP workload?",
"description": "For workloads centered on document processing automation, it's not just about the tech stack, but also the interplay of the company's culture, internal practices, and procedural frameworks. This evaluation seeks to understand how well AWS methodologies are ingrained within the business, the organization's agility in adapting to changes, and its harmony with the principles of the Well-Architected Framework, with a special emphasis on the organizational aspect",
"helpfulResource": {
"displayText": "By evaluating the organization's culture and operating model against these best practices, you can identify areas of strength and areas that may need further attention or improvement. The goal is to ensure that the organization is well-positioned not just technically but also culturally and operationally to make the most of the AWS cloud environment for document processing.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/organization.html"
},
"choices": [
{
"id": "OPS_1_1",
"title": "Continuous Training and Upskilling",
"helpfulResource": {
"displayText": "Our organization champions regular training sessions and encourages certifications, ensuring our teams are updated with the evolving AWS services and best practices."
},
"improvementPlan": {
"displayText": "Periodically reassess roles to ensure relevance. Encourage cross-training to enhance adaptability and foster team collaboration. Initiate feedback mechanisms to identify and rectify any ambiguities",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/organization.html"
}
},
{
"id": "OPS_1_2",
"title": "Feedback-Driven Iterative Improvements",
"helpfulResource": {
"displayText": "We value feedback from all stakeholders, be it technical teams or end-users. This input helps us in refining our processes, ensuring our document processing system remains agile and responsive to changing needs"
},
"improvementPlan": {
"displayText": "Introduce more flexible learning opportunities like self-paced courses or mentorship programs. Recognize and reward continuous learning endeavors. Allocate resources to support and encourage upskilling.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/organization.html"
}
},
{
"id": "OPS_1_3",
"title": "Alignment with Business Objectives",
"helpfulResource": {
"displayText": "Our strategies for document processing, are always drafted in line with our business goals, ensuring technological efforts directly contribute to organizational success."
},
"improvementPlan": {
"displayText": "Initiate structured methods for collecting feedback specifically about document processing automation challenges and successes. Regularly revisit and adjust the automation processes based on the feedback. Consider hosting dedicated forums to discuss document processing improvements.",
"url": "https://aws.amazon.com/blogs/enterprise-strategy/creating-the-cloud-business-office/"
}
},
{
"id": "OPS_1_4",
"title": "Change Management Processes in Place",
"helpfulResource": {
"displayText": "Changes in document processing automation workloads can have ripple effects. We've implemented processes to manage these changes, ensuring minimal disruption and maximum stakeholder awareness."
},
"improvementPlan": {
"displayText": "Engage both technical teams and business stakeholders in regular discussions about the evolving needs of document processing. Adjust the automation strategies to cater to both immediate and long-term business objectives. Stay receptive to changing business landscapes, ensuring the automation workload remains adaptable.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/organization.html"
}
},
{
"id": "OPS_1_no",
"title": "None of these"
}
],
"riskRules": [
{
"condition": "OPS_1_1 && OPS_1_2 && OPS_1_3 && OPS_1_4",
"risk": "NO_RISK"
},
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "OPS_2",
"title": "How do you measure the effectiveness of your IDP workflows?",
"description": "To achieve optimal efficiency in document processing, it's imperative to monitor, evaluate, and iterate on workflows. This question delves into your methods of measuring and analyzing the efficacy of your document processing systems. The focus is on understanding the metrics and KPIs you employ and how you harness these insights to refine and elevate your processes. Through continual measurement and refinement, organizations can enhance accuracy, speed, and overall performance in document processing tasks.",
"choices": [
{
"id": "OPS_2_1",
"title": "Defined Metrics for IDP Success",
"helpfulResource": {
"displayText": "Utilizing service-specific metrics allows for a granular understanding of how each component of the IDP workload performs, enabling fine-tuning and optimization. For instance, using CloudWatch, one could monitor the number of documents processed through Textract. Similarly, monitoring the volume and size of documents being uploaded to an S3 bucket can provide insights into the rate at which processing demand is increasing. Further, with AWS Step Functions, the built-in metrics can be leveraged to track the execution success rate, offering insights into the effectiveness of the workflow orchestration."
},
"improvementPlan": {
"displayText": "Establish benchmark metrics based on current Textract extraction accuracy",
"url": "https://docs.aws.amazon.com/textract/latest/dg/textract-monitoring.html"
},
"additionalResources": [
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Establish benchmark metrics based on Comprehend classification or entity recognition scores.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/cer-doc-class.html"
}
]
}
]
},
{
"id": "OPS_2_2",
"title": "Feedback Loop from Human Review",
"helpfulResource": {
"displayText": "Establishing feedback loops from human reviews can serve as a corrective metric for the automation process. When Textract or Comprehend results require human intervention due to low confidence scores, it's an indication of areas where automation might need refining. By measuring the frequency of such interventions, and the reasons behind them, one can iteratively improve the efficiency of the pipeline and training data. This continual feedback refines the automation process, improving accuracy over time."
},
"improvementPlan": {
"displayText": "Human Review Logging: Log every human intervention, particularly noting areas where Textract may have missed content or where Comprehend's analysis was uncertain. Quantitative Analysis: Track patterns in the human review logs. For Textract, this could be certain document types or layouts that are problematic. \n\nDocument Refinement: Based on feedback, refine how documents are prepared for Textract. For instance, if certain layouts are problematic, consider preprocessing adjustments.\n",
"url": "https://aws.amazon.com/blogs/machine-learning/part-2-intelligent-document-processing-with-aws-ai-services/"
}
},
{
"id": "OPS_2_3",
"title": "Monitoring and Improving Retry Mechanisms",
"helpfulResource": {
"displayText": "The effectiveness of an IDP workflow is also seen in its ability to handle and recover from errors. By tracking how often retries occur (e.g., when Textract or Comprehend fails, or when there's a glitch in retrieving a document from S3), and the success rate of these retries, one can get insights into system robustness. Metrics derived from Step Functions on the outcomes of these retries can highlight bottlenecks or frequent failure points. Analyzing these metrics allows for refinements in the workflow to improve resilience and reduce bottlenecks."
},
"improvementPlan": {
"displayText": "Error Logging: Ensure all errors are comprehensively logged, whether they're from Textract's extraction process or Comprehend's analysis.\n\nRoot Cause Analysis: Identify any consistent failure points.\n\nDocument Best Practices: Continually update and educate teams on best practices for preparing documents for Textract to reduce extraction errors.\n\nRefined Error Handling: Implement better error handling in the IDP pipeline, with specific responses to known issues. For example, if a certain type of document consistently causes Textract errors, the pipeline could automatically route it for human review.",
"url": "https://aws.amazon.com/blogs/machine-learning/part-2-intelligent-document-processing-with-aws-ai-services/"
}
},
{
"id": "OPS_2_no",
"title": "None of these"
}
],
"riskRules": [
{ "condition": "OPS_2_1 && OPS_2_2 && OPS_2_3", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "OPS_3",
"title": "How do you design your IDP workloads so that it can handle varying processing demands and unexpected challenges?",
"description": "What architectural choices have been made and what strategies are in place for your document processing workloads, emphasizing its adaptability to changing demands and unexpected issues. How does the system scales with varying document volumes, its resilience against disruptions, and its preparedness for unanticipated challenges in the document processing pipeline. Essentially, the emphasis is on the agility, flexibility, and robustness of your setup.",
"choices": [
{
"id": "OPS_3_1",
"title": "Use Amazon CloudWatch to monitor",
"helpfulResource": {
"displayText": "Monitor Usage Metrics: Textract and Comprehend"
},
"improvementPlan": {
"displayText": "Utilize Amazon CloudWatch to continuously monitor the number of API calls being made to Textract. This will help you identify potential rate limit breaches before they happen.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/textract_monitoring.html"
},
"additionalResources": [{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Utilize Amazon CloudWatch to continuously monitor the number of API calls being made to Comprehend. This will help you identify potential rate limit breaches before they happen.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints-monitor.html"
}
]
}]
},
{
"id": "OPS_3_2",
"title": "Throttling Management",
"helpfulResource": {
"displayText": "Throttling Management refers to the methods and strategies employed to handle rate-limiting imposed by services like Amazon Textract and Amazon Comprehend. AWS services often have limits to prevent misuse or to maintain a quality of service for all users. For Textract and Comprehend, this includes quotas on the number of API calls per second or the size of data being processed. Effective throttling management ensures that these quota limits do not impact your application's performance or user experience, by implementing mechanisms like backoff retries, queueing, and request prioritization."
},
"improvementPlan": {
"displayText": "Implement Exponential Backoff with Textract: When interfacing with Textract, ensure you manage throttling and dropped connections by setting the Config parameter when creating the Amazon Textract client. It's recommended to set a retry count of 5, as the AWS SDK retries an operation this specified number of times before considering it a failure. Incorporating this mechanism can handle throttling more effectively, using the SDK's built-in exponential backoff strategy.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/handling-errors.html"
}
},
{
"id": "OPS_3_3",
"title": "Event Driven/Looseely coupled",
"helpfulResource": {
"displayText": "We utilize AWS EventBridge for capturing and routing events from external systems, ensuring decoupled integrations and streamlined event-driven processing.AWS EventBridge provides a serverless event bus that simplifies the connection between applications. Its event-driven nature is crucial for real-time responsiveness and operational excellence. Decoupling the core processing from external system events ensures stability and seamless handling of varying integration requirements."
},
"improvementPlan": {
"displayText": "Use Amazon SQS: Implement Amazon Simple Queue Service (SQS) to queue up requests. This ensures that if there's a surge in demand or if the service starts throttling, the excess requests are queued up and processed in an orderly manner.Prioritize Critical Requests: If some document processing tasks are more critical than others, implement logic to prioritize these requests so that they are less likely to be throttled.Feedback Loop with Application Users: Inform users if there's a delay in document processing due to rate limiting. This enhances user experience by setting clear expectations.",
"url": "https://aws.amazon.com/blogs/publicsector/scaling-intelligent-document-processing-workflows-aws-ai/"
}
},
{
"id": "OPS_3_4",
"title": "Rules Specified for Human Review",
"helpfulResource": {
"displayText": "Setting clear conditions for when to involve humans ensures a balanced approach between automation efficiency and output accuracy. For example, with Textract. if the confidence score for extracting text from a document drops below a threshold, a human review process can be triggered. Similarly, if Comprehend's entity recognition identifies potential sensitive information but doesn't reach a high confidence score, a human verification step can be incorporated using Sagemaker GroudTruth. Using AWS Step Functions, workflows can be designed such that, based on output confidence scores from services like Textract or Comprehend, the flow can diverge to either continue with automation or switch to a human review state."
},
"improvementPlan": {
"displayText": "Building an end-to-end intelligent document processing solution using AWS",
"url": "https://aws.amazon.com/blogs/machine-learning/building-an-end-to-end-intelligent-document-processing-solution-using-aws/"
},
"additionalResources": [{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "AWS Step Functions for Workflow Automation:Design and implement workflows using AWS Step Functions where, based on the output confidence scores from Textract or Comprehend, the process can smoothly transition between automated steps and human review states.",
"url": "https://aws.amazon.com/blogs/machine-learning/processing-pdf-documents-with-a-human-loop-using-amazon-textract-and-amazon-augmented-ai/"
},
{
"displayText": "IDP AI Human in the Loop with SageMaker GroundTruth",
"url": "https://github.com/aws-samples/aws-ai-idp-human-in-loop/tree/main"
},
{
"displayText": "Use Amazon SageMaker Ground Truth to Label Data",
"url": "https://docs.aws.amazon.com/sagemaker/latest/dg/sms.html"
},
{
"displayText": "How Step Functions works",
"url": "https://docs.aws.amazon.com/step-functions/latest/dg/how-step-functions-works.html"
}
]
}]
},
{
"id": "OPS_3_no",
"title": "None of these"
}
],
"riskRules": [
{
"condition": "OPS_3_1 && OPS_3_2 && OPS_3_3 && OPS_3_4",
"risk": "NO_RISK"
},
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "OPS_4",
"title": "How do you evaluate document quality, and strategize pre and post-processing to optimize accuracy and insight?",
"description": "Designing an IDP AI services-based workflow involves evaluating document quality and employing pre-processing measures, such as image sharpening and noise reduction, to ensure optimal data input. Post-processing, on the other hand, focuses on refining outputs, like using confidence scores to trigger human reviews or further data manipulations, ensuring the highest accuracy and actionable insights are derived.\n\n\n\n",
"choices": [
{
"id": "OPS_4_2",
"title": "Document quality is assessed before starting document processing",
"helpfulResource": {
"displayText": "Before processing documents, we assess document quality in terms of clarity, resolution, and legibility. Documents not meeting our standards are flagged for manual intervention or subjected to enhancement techniques like image sharpening and noise reduction. \n\nPost-processing, we further refine outputs using cross-referencing with bounding box information, filtering out low-confidence results, structuring data for downstream applications, and triggering human reviews when anomalies or certain thresholds are detected"
},
"improvementPlan": {
"displayText": "Pre-processing: Before submitting documents to Textract or Comprehend, it's essential to ensure they are in an optimal format for accurate extraction or comprehension. This might involve techniques such as:\n\nImage enhancement to improve readability.\nNoise reduction to eliminate background artifacts.\nFormat conversion ensuring documents are in a supported format.\nSegmenting larger documents for efficient batch processing.",
"url": "https://aws.amazon.com/blogs/machine-learning/process-text-and-images-in-pdf-documents-with-amazon-textract/"
},
"additionalResources": [{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "The following is a list of a few ways that you can optimize your input documents for better results",
"url": "https://docs.aws.amazon.com/textract/latest/dg/textract-best-practices.html"
},
{
"displayText": "Document file requirements for Textract",
"url": "https://docs.aws.amazon.com/textract/latest/dg/limits-document.html"
},
{
"displayText": "Document file guidelines for Comprehend",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/guidelines-and-limits.html#limits-custom-entity-recognition"
},
{
"displayText": "Post-processing: After receiving output from Textract or Comprehend, certain steps enhance or refine the results:With Textract, leveraging bounding box information can help map extracted data to its position in the original document, aiding in data validation.Filtering out erroneous or low-confidence extractions.Integrating with AWS Step Functions for workflow management, automating steps like human review when confidence scores fall below a certain threshold.Transforming raw extracted data into structured formats suitable for downstream applications or storage solutions like Amazon S3.",
"url": "https://aws.amazon.com/blogs/machine-learning/improve-data-extraction-and-document-processing-with-amazon-textract/"
}
]
}]
},
{
"id": "OPS_4_no",
"title": "No specific setup for document quality evaluation"
}
],
"riskRules": [
{ "condition": "OPS_4_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "OPS_5",
"title": "How does your organization optimize the build and release processes for document processing workloads?",
"description": "Optimizing build and release processes are critical for ensuring agile, efficient, and robust deployments of document processing workloads that often demand high accuracy and reliability. This question evaluates how organizations approach this crucial step, leveraging AWS services and best practices, all in line with the AWS Well-Architected Framework's principles.\n",
"choices": [
{
"id": "OPS_5_1",
"title": "Utilization of Infrastructure as Code - IaC",
"helpfulResource": {
"displayText": "We leverage AWS services such as CloudFormation or the AWS CDK to define and provision our document processing resources. This ensures consistent, reproducible, and scalable infrastructure setups, enabling smoother build and release processes."
},
"improvementPlan": {
"displayText": "Use IaC and IDP CDK constructs to build your IDP workflow",
"url": "https://aws.amazon.com/blogs/machine-learning/improve-data-extraction-and-document-processing-with-amazon-textract/"
}
},
{
"id": "OPS_5_2",
"title": "Continuous Integration and Continuous Deployment CI/CD Practices",
"helpfulResource": {
"displayText": "We use AWS services like AWS CodePipeline and AWS CodeBuild for our CI/CD workflows. This ensures continuous integration and seamless deployment of document processing workloads, minimizing manual errors and reducing deployment times."
},
"improvementPlan": {
"displayText": "Use Continuous Integration and Continuous Deployment CICD Practices to deploy for IDP solution",
"url": "https://docs.aws.amazon.com/prescriptive-guidance/latest/strategy-cicd-litmus/understanding-cicd.html"
}
},
{
"id": "OPS_5_no",
"title": "None of these"
}
],
"riskRules": [
{ "condition": "OPS_5_1 && OPS_5_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "OPS_6",
"title": "How do you orchestrate training and evaluating tasks of new custom model for optimized Build and Release processes?",
"description": "Optimizing build and release processes are critical for ensuring agile, efficient, and robust deployments of document processing workloads that often demand high accuracy and reliability. This question evaluates how organizations approach this crucial step, leveraging AWS services and best practices, all in line with the AWS Well-Architected Frameworks principles.",
"choices": [
{
"id": "OPS_6_1",
"title": "Utilizing ML Flywheel for Model Versioning",
"helpfulResource": {
"displayText": "We leverage the capabilities of Amazon Comprehend's Flywheel to orchestrate the tasks related to training and evaluating new versions of our custom models. This streamlined approach allows for efficient model updates, ensuring our document processing solutions stay accurate and updated. The use of Flywheel, combined with AWS CloudFormation, facilitates consistent and reproducible deployment of model versions"
},
"improvementPlan": {
"displayText": "Continuous Model Evaluation: Integrate continuous evaluation tools that constantly feed real-world, post-deployment data back to the Flywheel. This will help in identifying drifts in model performance, triggering re-training sessions, and deploying updated models more proactively.Enhanced Version Management:Collaborate with the DevOps team to ensure that every model version deployed via AWS CloudFormation has a clear version tag, enabling swift rollback to previous versions if required. Maintaining a changelog for each version will also aid in tracking performance improvements or regressions over time.Feedback Loop Integration: Establish a feedback mechanism wherein end-users or domain experts can provide input on model predictions. Integrating this feedback into the Flywheel can refine the training and evaluation processes, further enhancing the models accuracy and relevance to real-world scenarios.",
"url": "https://aws.amazon.com/blogs/machine-learning/introducing-the-amazon-comprehend-flywheel-for-mlops/"
}
},
{
"id": "OPS_6_2",
"title": "Create Amazon Comprehend custom models using Comprehend flywheel",
"helpfulResource": {
"displayText": "Our MLOps strategy is fundamentally aligned with our business goals. By focusing on the broader objectives, we ensure that all ML deployments, including those integrated through Comprehends Flywheel, directly contribute to driving business valuebe it opening new use-case avenues, enhancing team productivity, or minimizing operational overheads."
},
"improvementPlan": {
"displayText": "Simplify continuous learning of Amazon Comprehend custom models using Comprehend flywheel",
"url": "https://aws.amazon.com/blogs/machine-learning/simplify-continuous-learning-of-amazon-comprehend-custom-models-using-comprehend-flywheel/"
}
},
{
"id": "OPS_6_no",
"title": "None of these"
}
],
"riskRules": [
{ "condition": "OPS_6_1 && OPS_6_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
}
]
},
{
"id": "security",
"name": "Security",
"questions": [
{
"id": "SEC_1",
"title": "Do you access S3, Textract and Comprehend via VPC endpoints in your IDP workflow?",
"description": "You can use Amazon Textract, Comprehend and S3 APIs through the public internet or keeping your network traffic within the AWS network via using VPC endpoints",
"helpfulResource": {
"displayText": "Consider put your IDP workflow in your VPC while access to Textract, Comprehend, and S3 APIs via VPC endpoints to secure the IDP workflow",
"url": "https://docs.aws.amazon.com/textract/latest/dg/vpc-interface-endpoints.htm"
},
"choices": [
{
"id": "SEC_1_2",
"title": "Use VPC endpoints to establish private connection with Amazon Textract, Comprehend and S3",
"helpfulResource": {
"displayText": "Instead of using the public internet, establish private and secure connections by keeping your network traffic within the AWS network and VPC endpoints to Amazon Comprehend, Textract and S3.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/vpc-interface-endpoints.html"
},
"improvementPlan": {
"displayText": "Using Amazon Textract with AWS PrivateLink",
"url": "https://aws.amazon.com/blogs/machine-learning/using-amazon-textract-with-aws-privatelink/"
},
"additionalResources": [
{
"type": "HELPFUL_RESOURCE",
"content": [
{
"displayText": "Amazon Comprehend and interface VPC endpoints (AWS PrivateLink)",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/vpc-interface-endpoints.html"
},
{
"displayText": "Gateway endpoints for Amazon S3",
"url": "https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html"
}
]
},
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Securing Amazon Comprehend API calls with AWS PrivateLink",
"url": "https://aws.amazon.com/blogs/machine-learning/securing-amazon-comprehend-api-calls-with-aws-privatelink/"
},
{
"displayText": "Managing Amazon S3 access with VPC endpoints and S3 Access Points",
"url": "https://aws.amazon.com/blogs/storage/managing-amazon-s3-access-with-vpc-endpoints-and-s3-access-points/"
}
]
}
]
},
{
"id": "SEC_1_no",
"title": "No specific setup for VPC endpoints to establish private connection"
}
],
"riskRules": [
{ "condition": "SEC_1_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_2",
"title": "Do you have a centralized identity provider for workforce identities?",
"description": "For workforce identities to your IDP application, rely on an identity provider that allows you to manage identities in a centralized place.",
"helpfulResource": {
"displayText": "For workforce identities to your IDP application, rely on an identity provider that allows you to manage identities in a centralized place.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_identities_identity_provider.html"
},
"choices": [
{
"id": "SEC_2_2",
"title": "Set up a centralized identity provider",
"helpfulResource": {
"displayText": "Setting up a centralized identity provider makes it simpler to manage access across multiple IDP applications and services. This reduces the need for multiple credentials and provides an opportunity to integrate with existing human resources (HR) processes.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_identities_identity_provider.html"
},
"improvementPlan": {
"displayText": "For federation with individual AWS accounts, you can use centralized identities for AWS with a SAML 2.0-based provider with AWS Identity and Access Management. For federation to multiple accounts in your AWS Organizations, you can configure your identity source in AWS IAM Identity Center and specify where your users and groups are stored.",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html"
},
"additionalResources": [
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Manage identities in IAM Identity Center",
"url": "https://docs.aws.amazon.com/singlesignon/latest/userguide/manage-your-identity-source-sso.html"
}
]
}
]
},
{
"id": "SEC_2_no",
"title": "No specific setup for centralized identity provider",
"helpfulResource": {
"displayText": "Don't rely on an identity provider that allows to manage identities"
}
}
],
"riskRules": [
{ "condition": "SEC_2_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "HIGH_RISK" }
]
},
{
"id": "SEC_3",
"title": "How do you manage and control user access to IDP services?",
"description": "Do you use IAM roles to control user access and do you enforce least privilege access to services in your IDP application?",
"helpfulResource": {
"displayText": "Do you use IAM roles to control user access and do you enforce least privilege access to services in your IDP application?",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html"
},
"choices": [
{
"id": "SEC_3_2",
"title": "Use IAM roles to control user access and enforce least privilege access via IAM policies and tags",
"helpfulResource": {
"displayText": "Create IAM roles for user access to services in IDP application and attach appropriate policies together with tags to achieve least privilege access",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html"
},
"improvementPlan": {
"displayText": "Create IAM roles for user access to services in IDP application and attach appropriate policies together with tags to achieve least privilege access",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_controlling.html"
},
"additionalResources": [
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Controlling access to AWS resources using tags",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html"
}
]
}
]
},
{
"id": "SEC_3_no",
"title": "No specific setup to enforce least privilege access",
"helpfulResource": {
"displayText": "Create IAM roles for user access to services in IDP application and attach appropriate policies together with tags to achieve least privilege access",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html"
}
}
],
"riskRules": [
{ "condition": "SEC_3_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_4",
"title": "How do you protect Amazon Textract and Comprehend in your account from cross-service impersonation?",
"description": "An IDP application usually has multiple services. One service may call another service. You need to prevent cross-service confused deputy.",
"helpfulResource": {
"displayText": "Cross-service impersonation can occur when one service calls another service. The calling service can be manipulated to act on another customer's resources even though it shouldn't have the proper permissions, resulting in the confused deputy problem.",
"url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html"
},
"choices": [
{
"id": "SEC_4_2",
"title": "Use the aws:SourceArn and aws:SourceAccount global condition context keys in resource policies",
"helpfulResource": {
"displayText": "We recommend using the aws:SourceArn and aws:SourceAccount global condition context keys in resource policies to limit the permissions that Textract or Comprehend gives another service to the resource.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/cross-service-confused-deputy-prevention.html"
},
"improvementPlan": {
"displayText": "We recommend using the aws:SourceArn and aws:SourceAccount global condition context keys in resource policies to limit the permissions that one service gives another service to the resource. If you use both global condition context keys, the aws:SourceAccount value and the account in the aws:SourceArn value must use the same account ID when used in the same policy statement.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/cross-service-confused-deputy-prevention.html"
},
"additionalResources": [
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Amazon Comprehend - Cross-service confused deputy prevention",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/cross-service-confused-deputy-prevention.html"
}
]
},
{
"type": "HELPFUL_RESOURCE",
"content": [
{
"displayText": "Amazon Comprehend - Cross-service confused deputy prevention",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/cross-service-confused-deputy-prevention.html"
}
]
}
]
},
{
"id": "SEC_4_no",
"title": "No specific setup to prevent cross-service confused deputy",
"helpfulResource": {
"displayText": "We recommend using the aws:SourceArn and aws:SourceAccount global condition context keys in resource policies to limit the permissions that Textract or Comprehend gives another service to the resource.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/cross-service-confused-deputy-prevention.html"
}
}
],
"riskRules": [
{ "condition": "SEC_4_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_5",
"title": "How do you secure sensitive data?",
"description": "IDP process usually involves multiple data stores. Sensitive data in these data stores needs to be secured",
"helpfulResource": {
"displayText": "These sensitivie data may exist in s3, DynamoDB, or RDS, etc",
"url": "https://docs.aws.amazon.com/whitepapers/latest/best-practices-building-data-lake-for-games/data-security-and-governance.html"
},
"choices": [
{
"id": "SEC_5_2",
"title": "Follow the best practices to secure sensitive data in data stores",
"helpfulResource": {
"displayText": "The security best practices tie back to some of the key capabilities including defining IAM controls, multiple ways to implement detective controls on databases, strengthening infrastructure security surrounding your data via network flow control, and data protection through encryption and tokenization.",
"url": "https://aws.amazon.com/blogs/database/best-practices-for-securing-sensitive-data-in-aws-data-stores/"
},
"improvementPlan": {
"displayText": "Consider defining IAM controls, implementing detective controls on databases, strengthening infrastructure security surrounding your data via network flow control, and/or data protection through encryption and tokenization",
"url": "https://aws.amazon.com/blogs/database/best-practices-for-securing-sensitive-data-in-aws-data-stores/"
}
},
{
"id": "SEC_5_no",
"title": "No specific setup to secure sensitive data",
"helpfulResource": {
"displayText": "The security best practices tie back to some of the key capabilities including defining IAM controls, multiple ways to implement detective controls on databases, strengthening infrastructure security surrounding your data via network flow control, and data protection through encryption and tokenization.",
"url": "https://aws.amazon.com/blogs/database/best-practices-for-securing-sensitive-data-in-aws-data-stores/"
}
}
],
"riskRules": [
{ "condition": "SEC_5_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_6",
"title": "How do you encrypt data at rest in Amazon Textract?",
"description": "Data encryption refers to protecting data while in transit and at rest. Amazon Textract uses Transport Layer Security (TLS) and VPC endpoints to encrypt data in transit. But how do you encrypt data at rest?",
"helpfulResource": {
"displayText": "Data encryption refers to protecting data while in transit and at rest. Amazon Textract uses Transport Layer Security (TLS) and VPC endpoints to encrypt data in transit. You need to choose a way to encrypt data at rest",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
},
"choices": [
{
"id": "SEC_6_2",
"title": "Encrypt data at rest with SSE-S3",
"helpfulResource": {
"displayText": "The primary method of encrypting data at rest in Amazon Textract is server-side encryption. You can do server-side encryption with Amazon S3-Managed Keys (SSE-S3)",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
},
"improvementPlan": {
"displayText": "When you use SSE-S3, each object is encrypted with a unique key. As an additional safeguard, this method encrypts the key itself with a master key that it regularly rotates.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
}
},
{
"id": "SEC_6_3",
"title": "Encrypt data at rest with SSE-KMS",
"helpfulResource": {
"displayText": "The primary method of encrypting data at rest in Amazon Textract is server-side encryption. You can do server-side encryption with KMS keys Stored in AWS Key Management Service (SSE-KMS)",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
},
"improvementPlan": {
"displayText": "SSE-KMS has some additional benefits and charges. There are separate permissions for the use of a KMS key that provides added protection against unauthorized access of your objects in Amazon S3. SSE-KMS also provides you with an audit trail that shows when your KMS key was used and by whom. Additionally, you can create and manage KMS keys or use AWS managed keys that are unique to you, your service, and your Region.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
}
},
{
"id": "SEC_6_no",
"title": "No encription for data at rest",
"helpfulResource": {
"displayText": "The primary method of encrypting data at rest in Amazon Textract is server-side encryption. You can do server-side encryption with Amazon S3-Managed Keys (SSE-S3)",
"url": "https://docs.aws.amazon.com/textract/latest/dg/encryption.html"
}
}
],
"riskRules": [
{ "condition": "SEC_6_2 || SEC_6_3", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_7",
"title": "Do you encrypt output of Amazon Textract asynchronous API in custom S3 bucket?",
"description": "When you call Textract's asynchronous API, the result can be output to a S3 bucket. Do you encrypt that output?",
"helpfulResource": {
"displayText": "When you call Textract's asynchronous API, the result can be output to a S3 bucket. Do you encrypt that output?",
"url": "https://aws.amazon.com/about-aws/whats-new/2020/11/amazon-textract-supports-aws-kms/"
},
"choices": [
{
"id": "SEC_7_2",
"title": "Specify output S3 bucket and use AWS KMS key",
"helpfulResource": {
"displayText": "When you start an Amazon Textract job by calling StartDocumentTextDetection or StartDocumentAnalysis, you can specify the S3 bucket for storing the output and specify the AWS KMS customer master key (CMK) to encrypt the output.",
"url": "https://aws.amazon.com/blogs/machine-learning/store-output-in-custom-amazon-s3-bucket-and-encrypt-using-aws-kms-for-multi-page-document-processing-with-amazon-textract/"
},
"improvementPlan": {
"displayText": "When you start an Amazon Textract job by calling StartDocumentTextDetection or StartDocumentAnalysis, an optional parameter in the API action is called OutputConfig. This parameter allows you to specify the S3 bucket for storing the output. Another optional input parameter KMSKeyId allows you to specify the AWS KMS customer master key (CMK) to use to encrypt the output.",
"url": "https://aws.amazon.com/blogs/machine-learning/store-output-in-custom-amazon-s3-bucket-and-encrypt-using-aws-kms-for-multi-page-document-processing-with-amazon-textract/"
}
},
{
"id": "SEC_7_no",
"title": "No specified output S3 bucket with AWS KMS key",
"helpfulResource": {
"displayText": "When you start an Amazon Textract job by calling StartDocumentTextDetection or StartDocumentAnalysis, you can specify the S3 bucket for storing the output and specify the AWS KMS customer master key (CMK) to encrypt the output.",
"url": "https://aws.amazon.com/blogs/machine-learning/store-output-in-custom-amazon-s3-bucket-and-encrypt-using-aws-kms-for-multi-page-document-processing-with-amazon-textract/"
}
}
],
"riskRules": [
{ "condition": "SEC_7_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_8",
"title": "Do you leverage KMS encryption in Amazon Comprehend?",
"description": "Amazon Comprehend works with AWS KMS to provide enhanced encryption for your data.",
"helpfulResource": {
"displayText": "Amazon Comprehend works with AWS Key Management Service (AWS KMS) to provide enhanced encryption for your data.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/kms-in-comprehend.html"
},
"choices": [
{
"id": "SEC_8_2",
"title": "Leverage KMS encryption in Amazon Comprehend to enhance data encryption for Start and Create jobs",
"helpfulResource": {
"displayText": "Amazon Comprehend works with AWS KMS to provide enhanced encryption for your data.Integration with AWS KMS enables you to encrypt the data in the storage volume for Start and Create jobs, and it encrypts the output results of Start jobs using your own KMS key.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/kms-in-comprehend.html"
},
"improvementPlan": {
"displayText": "For the AWS Management Console, Amazon Comprehend encrypts custom models with its own KMS key. For the AWS CLI, Amazon Comprehend can encrypt custom models using either its own KMS key or a provided customer managed key (CMK). All Amazon Comprehend Start and Create API operations support KMS encrypted input documents.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/kms-in-comprehend.html"
}
},
{
"id": "SEC_8_no",
"title": "No KMS encryption setup in Amazon Comprehend",
"helpfulResource": {
"displayText": "Amazon Comprehend works with AWS KMS to provide enhanced encryption for your data.Integration with AWS KMS enables you to encrypt the data in the storage volume for Start and Create jobs, and it encrypts the output results of Start jobs using your own KMS key.",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/kms-in-comprehend.html"
}
}
],
"riskRules": [
{ "condition": "SEC_8_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_9",
"title": "How do you protect PII in IDP output?",
"description": "For documents including Personal Identifying Information (PII), the PII from IDP output needs to be protected",
"helpfulResource": {
"displayText": "Depending on whether or not you need to store the PII in your IDP workflow's downstream, there are different ways to protect the PII.",
"url": "https://docs.aws.amazon.com/whitepapers/latest/best-practices-building-data-lake-for-games/data-security-and-governance.html"
},
"choices": [
{
"id": "SEC_9_2",
"title": "Secure the output PII in your data store",
"helpfulResource": {
"displayText": "If you need to store the PII in your IDP downstream, follow SEC01-BP04.",
"url": "https://aws.amazon.com/blogs/database/best-practices-for-securing-sensitive-data-in-aws-data-stores/"
},
"improvementPlan": {
"displayText": "Consider defining IAM controls, implementing detective controls on databases, strengthening infrastructure security surrounding your data via network flow control, and/or data protection through encryption and tokenization",
"url": "https://aws.amazon.com/blogs/database/best-practices-for-securing-sensitive-data-in-aws-data-stores/"
}
},
{
"id": "SEC_9_3",
"title": "Redact the PII in your IDP output",
"helpfulResource": {
"displayText": "If you do not need to store the PII in your IDP downstream, consider redacting the PII in your IDP output.",
"url": "https://aws.amazon.com/blogs/machine-learning/detecting-and-redacting-pii-using-amazon-comprehend/"
},
"improvementPlan": {
"displayText": "Design a PII redation step using Amazon Comprehend in your IDP workflow ",
"url": "https://aws.amazon.com/blogs/machine-learning/detecting-and-redacting-pii-using-amazon-comprehend/"
}
},
{
"id": "SEC_9_no",
"title": "No protection for PII in IDP output",
"helpfulResource": {
"displayText": "Depending on whether or not you need to store the PII in your IDP workflow's downstream, there are different ways to protect the PII.",
"url": "https://docs.aws.amazon.com/whitepapers/latest/best-practices-building-data-lake-for-games/data-security-and-governance.html"
}
}
],
"riskRules": [
{ "condition": "SEC_9_2 || SEC_9_3", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_10",
"title": "Do you implement secure key management?",
"description": "You need to define an encryption approach that includes the storage, rotation, and access control of keys, which helps provide protection for your content",
"helpfulResource": {
"displayText": "By defining an encryption approach that includes the storage, rotation, and access control of keys, you can help provide protection for your content against unauthorized users and against unnecessary exposure to authorized users.",
"url": "https://docs.aws.amazon.com/kms/latest/developerguide/overview.html"
},
"choices": [
{
"id": "SEC_10_2",
"title": "Use AWS Key Management Service (KMS)",
"helpfulResource": {
"displayText": "AWS KMS helps you manage encryption keys and integrates with many AWS services. It provides durable, secure, and redundant storage for your AWS KMS keys.",
"url": "https://docs.aws.amazon.com/kms/latest/developerguide/overview.html"
},
"improvementPlan": {
"displayText": "You can define your key aliases as well as key-level policies. The policies help you define key administrators as well as key users. You can use the AWS KMS API to create and manage KMS keys and special features, such as custom key stores, and use KMS keys in cryptographic operations.",
"url": "https://docs.aws.amazon.com/pdfs/wellarchitected/latest/security-pillar/wellarchitected-security-pillar.pdf#welcome"
}
},
{
"id": "SEC_10_no",
"title": "No implementation of secure key management",
"helpfulResource": {
"displayText": "AWS KMS helps you manage encryption keys and integrates with many AWS services. It provides durable, secure, and redundant storage for your AWS KMS keys.",
"url": "https://docs.aws.amazon.com/kms/latest/developerguide/overview.html"
}
}
],
"riskRules": [
{ "condition": "SEC_10_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_11",
"title": "Do you have secrets management?",
"description": "How do you manage secrets, such as API keys in your document processing workflow?",
"helpfulResource": {
"displayText": "An IDP workflow may have secrets such as API keys in multiple services or stages, you need to have a tool to store, manage, retrieve, and rotate these secrets",
"url": "https://aws.amazon.com/blogs/aws/aws-secrets-manager-store-distribute-and-rotate-credentials-securely/"
},
"choices": [
{
"id": "SEC_11_2",
"title": "Use AWS Secrets Manager",
"helpfulResource": {
"displayText": "AWS Secrets Manager helps you manage, retrieve, and rotate database credentials, application credentials, OAuth tokens, API keys, and other secrets throughout their lifecycles. Storing the credentials in Secrets Manager helps avoid possible compromise by anyone who can inspect your application or the components.",
"url": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html"
},
"improvementPlan": {
"displayText": "With Secrets Manager, you can configure an automatic rotation schedule for your secrets. This enables you to replace long-term secrets with short-term ones, significantly reducing the risk of compromise. Since the credentials are no longer stored with the application, rotating credentials no longer requires updating your applications and deploying changes to application clients.",
"url": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html"
}
},
{
"id": "SEC_11_no",
"title": "No secrets management",
"helpfulResource": {
"displayText": "AWS Secrets Manager helps you manage, retrieve, and rotate database credentials, application credentials, OAuth tokens, API keys, and other secrets throughout their lifecycles. Storing the credentials in Secrets Manager helps avoid possible compromise by anyone who can inspect your application or the components.",
"url": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html"
}
}
],
"riskRules": [
{ "condition": "SEC_11_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_12",
"title": "Do you separate workloads using different accounts?",
"description": "If you have multiple IDP workloads, do you separate them using different accounts?",
"helpfulResource": {
"displayText": "If you have multiple IDP workloads, do you separate them using different accounts?",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_securely_operate_multi_accounts.html"
},
"choices": [
{
"id": "SEC_12_2",
"title": "Separate workloads using accounts",
"helpfulResource": {
"displayText": "Establish common guardrails and isolation between environments (such as production, development, and test) and workloads through a multi-account strategy. Account-level separation is strongly recommended, as it provides a strong isolation boundary for security, billing, and access.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_securely_operate_multi_accounts.html"
},
"improvementPlan": {
"displayText": "AWS provides tools to manage your cloud workloads at scale through a multi-account strategy to leverage this isolation boundary.When you have multiple AWS accounts under central management, your accounts should be organized into a hierarchy defined by layers of organizational units (OUs). Security controls can then be organized and applied to the OUs and member accounts, establishing consistent preventative controls on member accounts in the organization.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_securely_operate_multi_accounts.html"
}
},
{
"id": "SEC_12_no",
"title": "Multiple workloads are all in one account",
"helpfulResource": {
"displayText": "Establish common guardrails and isolation between environments (such as production, development, and test) and workloads through a multi-account strategy. Account-level separation is strongly recommended, as it provides a strong isolation boundary for security, billing, and access.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_securely_operate_multi_accounts.html"
}
}
],
"riskRules": [
{ "condition": "SEC_12_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_13",
"title": "Do you configure IDP services and application logging?",
"description": "During a security investigation or other use cases based on your requirements, you need to be able to review relevant logs to record and understand the full scope and timeline of the incident. Logs are also required for alert generation, indicating that certain actions of interest have happened.",
"helpfulResource": {
"displayText": "Retain security event logs from services and applications. This is a fundamental principle of security for audit, investigations, and operational use cases, and a common security requirement driven by governance, risk, and compliance (GRC) standards, policies, and procedures.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_detect_investigate_events_app_service_logging.html"
},
"choices": [
{
"id": "SEC_13_2",
"title": "Logging Amazon Textract and Comprehend API calls with AWS CloudTrail",
"helpfulResource": {
"displayText": "Both Amazon Textract and Amazon Comprehend are integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service. CloudTrail captures API calls for Textract and Comprehend as events. The calls captured include calls from the service console and code calls to the service API operations.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/logging-using-cloudtrail.html"
},
"improvementPlan": {
"displayText": "If you create a trail, you can enable continuous delivery of CloudTrail events to an Amazon S3 bucket, including events for Amazon Textract/Comprehend. If you don't configure a trail, you can still view the most recent events in the CloudTrail console in Event history.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/logging-using-cloudtrail.html"
},
"additionalResources": [
{
"type": "HELPFUL_RESOURCE",
"content": [
{
"displayText": "Logging Amazon Comprehend API calls with AWS CloudTrail",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/logging-using-cloudtrail.html"
}
]
},
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Logging Amazon Comprehend API calls with AWS CloudTrail",
"url": "https://docs.aws.amazon.com/comprehend/latest/dg/logging-using-cloudtrail.html"
}
]
}
]
},
{
"id": "SEC_13_no",
"title": "No specific configuration for IDP services and application logging",
"helpfulResource": {
"displayText": "Both Amazon Textract and Amazon Comprehend are integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service. CloudTrail captures API calls for Textract and Comprehend as events. The calls captured include calls from the service console and code calls to the service API operations.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/logging-using-cloudtrail.html"
}
}
],
"riskRules": [
{ "condition": "SEC_13_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
},
{
"id": "SEC_14",
"title": "Do you have incident response procedures?",
"description": "Do you have incident response procedures in place to handle potential security incidents in your doc processing system?",
"helpfulResource": {
"displayText": "Even with extremely mature preventive and detective controls, your organization should still put processes in place to respond to and mitigate the potential impact of security incidents.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec-incresp.html"
},
"choices": [
{
"id": "SEC_14_2",
"title": "Establish incident response procedures",
"helpfulResource": {
"displayText": "The architecture of your workload strongly affects the ability of your teams to operate effectively during an incident, to isolate or contain systems, and to restore operations to a known good state.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec-incresp.html"
},
"improvementPlan": {
"displayText": "Putting in place the tools and access ahead of a security incident, then routinely practicing incident response through game days, will help you verify that your architecture can accommodate timely investigation and recovery.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec-incresp.html"
}
},
{
"id": "SEC_14_no",
"title": "No established incident response procedures",
"helpfulResource": {
"displayText": "The architecture of your workload strongly affects the ability of your teams to operate effectively during an incident, to isolate or contain systems, and to restore operations to a known good state.",
"url": "https://docs.aws.amazon.com/wellarchitected/latest/framework/sec-incresp.html"
}
}
],
"riskRules": [
{ "condition": "SEC_14_2", "risk": "NO_RISK" },
{ "condition": "default", "risk": "MEDIUM_RISK" }
]
}
]
},
{
"id": "reliability",
"name": "Reliability",
"questions": [
{
"id": "REL_1",
"title": "How do you manage service quotas and constraints in your IDP workload?",
"description": "Service quotas exist to prevent accidentally provisioning more resources than you need and to limit request rates on API operations so as to protect services from abuse. There are also resource constraints, for example, the rate that you can write/read files to/from Amazon S3.",
"helpfulResource": {
"displayText": "Service quotas exist to prevent accidentally provisioning more resources than you need and to limit request rates on API operations so as to protect services from abuse. There are also resource constraints, for example, the rate that you can write/read files to/from Amazon S3."
},
"choices": [
{
"id": "REL_1_2",
"title": "Adjust Amazon Textract and Amazon Comprehend service quota values to meet your use case.",
"helpfulResource": {
"displayText": "When requesting an increase to a default quota, there are several recommended best practices to follow. These include smooth spiky traffic, configuring retries, and configuring exponential backoff and jitters.\nFor Amazon Textract, estimate your optimal quota values using Textract Service Quota Calculator.As an alternative to raising a request directly from the calculator, you can also use the Service quotas console.\nFor Amazon Comprehend use the Service quotas console.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/limits-quotas-explained.html"
},
"improvementPlan": {
"displayText": "When requesting an increase to a default quota, there are several recommended best practices to follow. These include smooth spiky traffic, configuring retries, and configuring exponential backoff and jitters.\nFor Amazon Textract, estimate your optimal quota values using Textract Service Quota Calculator.As an alternative to raising a request directly from the calculator, you can also use the Service quotas console.\nFor Amazon Comprehend use the Service quotas console.",
"url": "https://docs.aws.amazon.com/textract/latest/dg/limits-quotas-explained.html"
},
"additionalResources": [
{
"type": "HELPFUL_RESOURCE",
"content": [
{
"displayText": "Amazon Comprehend endpoints and quotas",
"url": "https://docs.aws.amazon.com/general/latest/gr/comprehend.html"
}
]
},
{
"type": "IMPROVEMENT_PLAN",
"content": [
{
"displayText": "Amazon Comprehend endpoints and quotas",
"url": "https://docs.aws.amazon.com/general/latest/gr/comprehend.html"
}
]
}