You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,37 @@ The web interface allows real-time configuration updates without stack redeploym
27
27
28
28
Configuration changes are validated and applied immediately, with rollback capability if issues arise. See [web-ui.md](web-ui.md) for details on using the administration interface.
29
29
30
+
## Custom Configuration Path
31
+
32
+
The solution now supports specifying a custom configuration file location via the `CustomConfigPath` CloudFormation parameter. This allows you to use your own configuration files stored in S3 instead of the default configuration library.
33
+
34
+
### Usage
35
+
36
+
When deploying the stack, you can specify a custom configuration file:
- Conditional IAM access only when CustomConfigPath is specified
51
+
- Proper S3 URI to ARN conversion for least-privilege compliance
52
+
- Passes security scans with minimal required permissions
53
+
54
+
**Configuration File Requirements:**
55
+
- Must be valid YAML format
56
+
- Should include all required sections for your chosen pattern (ocr, classes, classification, extraction, etc.)
57
+
- Follow the same structure as the default configuration files in the `config_library` directory
58
+
59
+
Leave the `CustomConfigPath` parameter empty (default) to use the standard configuration library included with the solution.
60
+
30
61
## Summarization Configuration
31
62
32
63
### Enable/Disable Summarization
@@ -100,6 +131,7 @@ Key parameters that can be configured during CloudFormation deployment:
100
131
- `WAFAllowedIPv4Ranges`: IP restrictions for web UI access (default: allow all)
101
132
- `CloudFrontPriceClass`: Set CloudFront price class for UI distribution
102
133
- `CloudFrontAllowedGeos`: Optional geographic restrictions for UI access
134
+
- `CustomConfigPath`: Optional S3 URI to a custom configuration file that overrides pattern presets. Leave blank to use selected pattern configuration. Example: s3://my-bucket/custom-config/config.yaml
Copy file name to clipboardExpand all lines: template.yaml
+75-14Lines changed: 75 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,17 @@ Parameters:
86
86
Description: >-
87
87
Built-in IDP workflow patterns - see README for pattern descriptions.
88
88
89
+
# Custom Configuration Path
90
+
91
+
CustomConfigPath:
92
+
Type: String
93
+
Default: ""
94
+
Description: >-
95
+
S3 URI pointing to your custom configuration YAML file. When provided, this configuration overrides the selected pattern preset and applies to all processing patterns.
96
+
Leave blank to use the selected pattern configuration preset. For example s3://my-bucket/custom-config/config.yaml
ConstraintDescription: Must be empty or a valid S3 URI (e.g., s3://my-bucket/custom-config/config.yaml)
99
+
89
100
# Pattern 1 Parameters
90
101
91
102
Pattern1BDAProjectArn:
@@ -100,8 +111,9 @@ Parameters:
100
111
AllowedValues:
101
112
- "lending-package-sample"
102
113
- "default"
103
-
Description: Select the configuration preset for Pattern 1. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
104
-
114
+
Description: >-
115
+
Select the configuration preset for Pattern 1. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md. Note: This selected configuration will be replaced by the Custom Configuration Path if specified.
Description: Select the configuration preset for Pattern 2. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
128
+
Description: >-
129
+
Select the configuration preset for Pattern 2. Each configuration contains pre-tuned settings for specific document processing scenarios see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md. Note: Custom configuration overrides the selected pattern configuration when provided.
117
130
118
131
Pattern2CustomClassificationModelARN:
119
132
Type: String
@@ -139,8 +152,20 @@ Parameters:
139
152
AllowedValues:
140
153
- "rvl-cdip-package-sample"
141
154
- "default"
142
-
Description: Select the configuration preset for Pattern 3. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md.
143
-
155
+
Description: >-
156
+
Select the configuration preset for Pattern 3. Each configuration contains pre-tuned settings for specific document processing scenarios - see https://github.com/aws-samples/sample-genai-idp/blob/main/config_library/README.md. Note: Custom configuration overrides the selected pattern configuration when provided.
157
+
158
+
# Custom Configuration Path
159
+
160
+
CustomConfigPath:
161
+
Type: String
162
+
Default: ""
163
+
Description: >-
164
+
S3 URI pointing to your custom configuration YAML file. When provided, this configuration overrides the selected pattern preset and applies to all processing patterns.
165
+
Leave blank to use the selected pattern configuration preset. For example s3://my-bucket/custom-config/config.yaml
0 commit comments