fix(iam): add bedrock application-inference-profile to lambda executi…#236
Merged
rstrahan merged 3 commits intoaws-solutions-library-samples:developfrom Mar 11, 2026
Merged
Conversation
…on 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):** aws-solutions-library-samples#235
ccd214a
into
aws-solutions-library-samples:develop
1 check failed
Contributor
|
Thanks so much @sebastianpuertosanc - will be in v0.5.2 |
This was referenced Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…on roles
What changed:
Added the
application-inference-profile/*ARN pattern to thebedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamIAM 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:
AccessDeniedExceptionerrors when substituting default models with application-specific profiles.Related Issue(s):
#235
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.