Commit bcddde4
authored
fix(iam): add bedrock application-inference-profile to lambda execution roles
**What changed:**
Added the `application-inference-profile/*` ARN pattern to the `bedrock:InvokeModel` and `bedrock:InvokeModelWithResponseStream` IAM policy statements across the document processing Lambda functions (Classification, Extraction, Assessment, and Summarization).
**Why it matters:**
Previously, the IAM policies in the SAM templates only permitted invocation of standard Foundation Models (`foundation-model/*`) and cross-region inference profiles (`inference-profile/*`). This strict string matching blocked the use of custom Application Inference Profiles (`application-inference-profile/*`).
By adding this ARN pattern, users can now successfully map custom inference profiles (like Nova 2 Lite) to the IDP pipeline. This unlocks the ability to:
* Tag Bedrock invocations for granular cost allocation.
* Track custom model throughput and performance metrics.
* Avoid `AccessDeniedException` errors when substituting default models with application-specific profiles.
**Related Issue(s):**
#2351 parent 9eb94be commit bcddde4
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2441 | 2441 | | |
2442 | 2442 | | |
2443 | 2443 | | |
| 2444 | + | |
2444 | 2445 | | |
2445 | 2446 | | |
2446 | 2447 | | |
| |||
2566 | 2567 | | |
2567 | 2568 | | |
2568 | 2569 | | |
| 2570 | + | |
2569 | 2571 | | |
2570 | 2572 | | |
2571 | 2573 | | |
| |||
2695 | 2697 | | |
2696 | 2698 | | |
2697 | 2699 | | |
| 2700 | + | |
2698 | 2701 | | |
2699 | 2702 | | |
2700 | 2703 | | |
| |||
2815 | 2818 | | |
2816 | 2819 | | |
2817 | 2820 | | |
| 2821 | + | |
2818 | 2822 | | |
2819 | 2823 | | |
2820 | 2824 | | |
| |||
3021 | 3025 | | |
3022 | 3026 | | |
3023 | 3027 | | |
| 3028 | + | |
3024 | 3029 | | |
3025 | 3030 | | |
3026 | 3031 | | |
| |||
3140 | 3145 | | |
3141 | 3146 | | |
3142 | 3147 | | |
| 3148 | + | |
3143 | 3149 | | |
3144 | 3150 | | |
3145 | 3151 | | |
| |||
3250 | 3256 | | |
3251 | 3257 | | |
3252 | 3258 | | |
| 3259 | + | |
3253 | 3260 | | |
3254 | 3261 | | |
3255 | 3262 | | |
| |||
3361 | 3368 | | |
3362 | 3369 | | |
3363 | 3370 | | |
| 3371 | + | |
3364 | 3372 | | |
3365 | 3373 | | |
3366 | 3374 | | |
| |||
0 commit comments